Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,6 @@ from utils import (
|
|
| 20 |
download_manager,
|
| 21 |
)
|
| 22 |
import random
|
| 23 |
-
import spaces
|
| 24 |
from utils import logger
|
| 25 |
import onnxruntime as ort
|
| 26 |
import warnings
|
|
@@ -350,7 +349,7 @@ class MDX:
|
|
| 350 |
return self.segment(processed_batches, True, chunk)
|
| 351 |
|
| 352 |
|
| 353 |
-
|
| 354 |
def run_mdx(
|
| 355 |
model_params,
|
| 356 |
output_dir,
|
|
@@ -1426,39 +1425,7 @@ def get_gui(theme):
|
|
| 1426 |
outputs=[output_base],
|
| 1427 |
)
|
| 1428 |
|
| 1429 |
-
|
| 1430 |
-
examples=[
|
| 1431 |
-
[
|
| 1432 |
-
"./test.mp3",
|
| 1433 |
-
"vocal",
|
| 1434 |
-
False,
|
| 1435 |
-
False,
|
| 1436 |
-
False,
|
| 1437 |
-
False,
|
| 1438 |
-
0.15, 0.7, 0.8, 0.2,
|
| 1439 |
-
0., 0., -15, 4., 1, 100, 0,
|
| 1440 |
-
120, 11000, 0.5, 0.1, 0.25, -15, 4., 15, 60, 0,
|
| 1441 |
-
],
|
| 1442 |
-
],
|
| 1443 |
-
fn=sound_separate,
|
| 1444 |
-
inputs=[
|
| 1445 |
-
aud,
|
| 1446 |
-
stem_gui,
|
| 1447 |
-
main_gui,
|
| 1448 |
-
dereverb_gui,
|
| 1449 |
-
vocal_effects_gui,
|
| 1450 |
-
background_effects_gui,
|
| 1451 |
-
vocal_reverb_room_size_gui, vocal_reverb_damping_gui, vocal_reverb_dryness_gui, vocal_reverb_wet_level_gui,
|
| 1452 |
-
vocal_delay_seconds_gui, vocal_delay_mix_gui, vocal_compressor_threshold_db_gui, vocal_compressor_ratio_gui,
|
| 1453 |
-
vocal_compressor_attack_ms_gui, vocal_compressor_release_ms_gui, vocal_gain_db_gui,
|
| 1454 |
-
background_highpass_freq_gui, background_lowpass_freq_gui, background_reverb_room_size_gui,
|
| 1455 |
-
background_reverb_damping_gui, background_reverb_wet_level_gui, background_compressor_threshold_db_gui,
|
| 1456 |
-
background_compressor_ratio_gui, background_compressor_attack_ms_gui, background_compressor_release_ms_gui,
|
| 1457 |
-
background_gain_db_gui,
|
| 1458 |
-
],
|
| 1459 |
-
outputs=[output_base],
|
| 1460 |
-
cache_examples=False,
|
| 1461 |
-
)
|
| 1462 |
|
| 1463 |
return app
|
| 1464 |
|
|
|
|
| 20 |
download_manager,
|
| 21 |
)
|
| 22 |
import random
|
|
|
|
| 23 |
from utils import logger
|
| 24 |
import onnxruntime as ort
|
| 25 |
import warnings
|
|
|
|
| 349 |
return self.segment(processed_batches, True, chunk)
|
| 350 |
|
| 351 |
|
| 352 |
+
|
| 353 |
def run_mdx(
|
| 354 |
model_params,
|
| 355 |
output_dir,
|
|
|
|
| 1425 |
outputs=[output_base],
|
| 1426 |
)
|
| 1427 |
|
| 1428 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1429 |
|
| 1430 |
return app
|
| 1431 |
|