Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,8 +61,8 @@ def separate_audio_by_stem(audio_path, stem_count):
|
|
| 61 |
print(f"{vocals_path=} \t exists: {os.path.exists(vocals_path)}")
|
| 62 |
|
| 63 |
return [
|
| 64 |
-
{'description'
|
| 65 |
-
{'description'
|
| 66 |
]
|
| 67 |
|
| 68 |
elif stem_count == 4:
|
|
@@ -78,10 +78,10 @@ def separate_audio_by_stem(audio_path, stem_count):
|
|
| 78 |
print(f"{other_path=} \t exists: {os.path.exists(other_path)}")
|
| 79 |
|
| 80 |
return [
|
| 81 |
-
{'description'
|
| 82 |
-
{'description'
|
| 83 |
-
{'description'
|
| 84 |
-
{'description'
|
| 85 |
]
|
| 86 |
|
| 87 |
elif stem_count == 5:
|
|
@@ -99,11 +99,11 @@ def separate_audio_by_stem(audio_path, stem_count):
|
|
| 99 |
print(f"{other_path=} \t exists: {os.path.exists(other_path)}")
|
| 100 |
|
| 101 |
return [
|
| 102 |
-
{'description'
|
| 103 |
-
{'description'
|
| 104 |
-
{'description'
|
| 105 |
-
{'description'
|
| 106 |
-
{'description'
|
| 107 |
]
|
| 108 |
|
| 109 |
# Streamlit app content
|
|
|
|
| 61 |
print(f"{vocals_path=} \t exists: {os.path.exists(vocals_path)}")
|
| 62 |
|
| 63 |
return [
|
| 64 |
+
{'description': 'Accompaniment', 'path':accompaniment_path},
|
| 65 |
+
{'description': 'Vocals', 'path':vocals_path},
|
| 66 |
]
|
| 67 |
|
| 68 |
elif stem_count == 4:
|
|
|
|
| 78 |
print(f"{other_path=} \t exists: {os.path.exists(other_path)}")
|
| 79 |
|
| 80 |
return [
|
| 81 |
+
{'description': 'Vocals', 'path':vocals_path},
|
| 82 |
+
{'description': 'Drums', 'path':drums_path},
|
| 83 |
+
{'description': 'Bass', 'path':bass_path},
|
| 84 |
+
{'description': 'Other', 'path':other_path},
|
| 85 |
]
|
| 86 |
|
| 87 |
elif stem_count == 5:
|
|
|
|
| 99 |
print(f"{other_path=} \t exists: {os.path.exists(other_path)}")
|
| 100 |
|
| 101 |
return [
|
| 102 |
+
{'description': 'Vocals', 'path':vocals_path},
|
| 103 |
+
{'description': 'Piano', 'path':piano_path},
|
| 104 |
+
{'description': 'Drums', 'path':drums_path},
|
| 105 |
+
{'description': 'Bass', 'path':bass_path},
|
| 106 |
+
{'description': 'Other', 'path':other_path},
|
| 107 |
]
|
| 108 |
|
| 109 |
# Streamlit app content
|