Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,6 +41,7 @@ def get_cached_model(model_name: str):
|
|
| 41 |
return LOADED_MODELS[model_name]
|
| 42 |
|
| 43 |
# Separation Logic
|
|
|
|
| 44 |
def separate_all_stems(audio_file_path: str, model_name: str):
|
| 45 |
model = get_cached_model(model_name)
|
| 46 |
|
|
@@ -94,7 +95,6 @@ def separate_all_stems(audio_file_path: str, model_name: str):
|
|
| 94 |
return [drums, bass, vocals, other]
|
| 95 |
|
| 96 |
# Process Function
|
| 97 |
-
@spaces.GPU
|
| 98 |
def process_fn(audio_file_path, model_name):
|
| 99 |
try:
|
| 100 |
if model_name not in DEMUX_MODELS:
|
|
|
|
| 41 |
return LOADED_MODELS[model_name]
|
| 42 |
|
| 43 |
# Separation Logic
|
| 44 |
+
@spaces.GPU
|
| 45 |
def separate_all_stems(audio_file_path: str, model_name: str):
|
| 46 |
model = get_cached_model(model_name)
|
| 47 |
|
|
|
|
| 95 |
return [drums, bass, vocals, other]
|
| 96 |
|
| 97 |
# Process Function
|
|
|
|
| 98 |
def process_fn(audio_file_path, model_name):
|
| 99 |
try:
|
| 100 |
if model_name not in DEMUX_MODELS:
|