Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def BeatSwap(audiofile, pattern: str = 'test', scale:float = 1, shift:float = 0,
|
|
9 |
if pattern == '' or pattern is None: pattern = 'test'
|
10 |
if caching is not False: caching == True
|
11 |
if variableBPM is not True: variableBPM == False
|
12 |
-
if 'random' in pattern.lower(): pattern = random
|
13 |
try:
|
14 |
scale=bm.utils._safer_eval(scale)
|
15 |
except: scale = 1
|
|
|
9 |
if pattern == '' or pattern is None: pattern = 'test'
|
10 |
if caching is not False: caching == True
|
11 |
if variableBPM is not True: variableBPM == False
|
12 |
+
if 'random' in pattern.lower(): pattern = 'random'
|
13 |
try:
|
14 |
scale=bm.utils._safer_eval(scale)
|
15 |
except: scale = 1
|