Spaces:
Running
Running
please
Browse files
beat_manipulator/presets.py
CHANGED
@@ -10,9 +10,9 @@ def presets_load(path, mode = 'add'):
|
|
10 |
with open(path, 'r') as f:
|
11 |
yaml_presets = yaml.safe_load(f.read())
|
12 |
|
13 |
-
if mode.lower() == 'add':
|
14 |
-
|
15 |
-
elif mode.lower() == 'replace':
|
16 |
presets = yaml_presets
|
17 |
|
18 |
presets_load('beat_manipulator/presets.yaml')
|
|
|
10 |
with open(path, 'r') as f:
|
11 |
yaml_presets = yaml.safe_load(f.read())
|
12 |
|
13 |
+
# if mode.lower() == 'add':
|
14 |
+
# presets = presets | yaml_presets
|
15 |
+
# elif mode.lower() == 'replace':
|
16 |
presets = yaml_presets
|
17 |
|
18 |
presets_load('beat_manipulator/presets.yaml')
|