Spaces:
Runtime error
Runtime error
BEAT MANIPULATOR V2 IN THE WORKS BUT IM FIXING THIS ONE
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def BeatSwap(audiofile, pattern: str = 'test', scale:float = 1, shift:float = 0,
|
|
59 |
print('___ SUCCESS ___')
|
60 |
return ((song.sr, song.audio), image)
|
61 |
|
62 |
-
audiofile=Audio(
|
63 |
patternbox = Textbox(label="Pattern:", placeholder="1, 3, 2, 4!", value="1, 2>0.5, 3, 4>0.5, 5, 6>0.5, 3, 4>0.5, 7, 8", lines=1)
|
64 |
scalebox = Textbox(value=1, label="Beatmap scale. At 2, every two beat positions will be merged, at 0.5 - a beat position added between every two existing ones.", placeholder=1, lines=1)
|
65 |
shiftbox = Textbox(value=0, label="Beatmap shift, in beats (applies before scaling):", placeholder=0, lines=1)
|
|
|
59 |
print('___ SUCCESS ___')
|
60 |
return ((song.sr, song.audio), image)
|
61 |
|
62 |
+
audiofile=Audio(sources='upload', type='filepath')
|
63 |
patternbox = Textbox(label="Pattern:", placeholder="1, 3, 2, 4!", value="1, 2>0.5, 3, 4>0.5, 5, 6>0.5, 3, 4>0.5, 7, 8", lines=1)
|
64 |
scalebox = Textbox(value=1, label="Beatmap scale. At 2, every two beat positions will be merged, at 0.5 - a beat position added between every two existing ones.", placeholder=1, lines=1)
|
65 |
shiftbox = Textbox(value=0, label="Beatmap shift, in beats (applies before scaling):", placeholder=0, lines=1)
|