Spaces:
Paused
Paused
Update inference time request from 1 min to 5 min
#1
by
Eddycrack864
- opened
app.py
CHANGED
|
@@ -516,7 +516,7 @@ components = {
|
|
| 516 |
}
|
| 517 |
|
| 518 |
@track_presence("Performing BS/Mel Roformer Separation")
|
| 519 |
-
@spaces.GPU(duration=
|
| 520 |
def roformer_separator(audio, model_key, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 521 |
roformer_model = roformer_models[model_key]
|
| 522 |
model_path = os.path.join(models_dir, roformer_model)
|
|
@@ -558,7 +558,7 @@ def roformer_separator(audio, model_key, out_format, segment_size, override_seg_
|
|
| 558 |
raise RuntimeError(f"Roformer separation failed: {e}") from e
|
| 559 |
|
| 560 |
@track_presence("Performing MDXC Separationn")
|
| 561 |
-
@spaces.GPU(duration=
|
| 562 |
def mdxc_separator(audio, model, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 563 |
model_path = os.path.join(models_dir, model)
|
| 564 |
try:
|
|
@@ -599,7 +599,7 @@ def mdxc_separator(audio, model, out_format, segment_size, override_seg_size, ov
|
|
| 599 |
raise RuntimeError(f"MDX23C separation failed: {e}") from e
|
| 600 |
|
| 601 |
@track_presence("Performing MDX-NET Separation")
|
| 602 |
-
@spaces.GPU(duration=
|
| 603 |
def mdxnet_separator(audio, model, out_format, hop_length, segment_size, denoise, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 604 |
model_path = os.path.join(models_dir, model)
|
| 605 |
try:
|
|
@@ -641,7 +641,7 @@ def mdxnet_separator(audio, model, out_format, hop_length, segment_size, denoise
|
|
| 641 |
raise RuntimeError(f"MDX-NET separation failed: {e}") from e
|
| 642 |
|
| 643 |
@track_presence("Performing VR Arch Separation")
|
| 644 |
-
@spaces.GPU(duration=
|
| 645 |
def vrarch_separator(audio, model, out_format, window_size, aggression, tta, post_process, post_process_threshold, high_end_process, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 646 |
model_path = os.path.join(models_dir, model)
|
| 647 |
try:
|
|
@@ -685,7 +685,7 @@ def vrarch_separator(audio, model, out_format, window_size, aggression, tta, pos
|
|
| 685 |
raise RuntimeError(f"VR ARCH separation failed: {e}") from e
|
| 686 |
|
| 687 |
@track_presence("Performing Demucs Separation")
|
| 688 |
-
@spaces.GPU(duration=
|
| 689 |
def demucs_separator(audio, model, out_format, shifts, segment_size, segments_enabled, overlap, batch_size, norm_thresh, amp_thresh, progress=gr.Progress(track_tqdm=True)):
|
| 690 |
model_path = os.path.join(models_dir, model)
|
| 691 |
try:
|
|
@@ -732,7 +732,7 @@ def update_stems(model):
|
|
| 732 |
return gr.update(visible=False)
|
| 733 |
|
| 734 |
@track_presence("Performing BS/Mel Roformer Batch Separation")
|
| 735 |
-
@spaces.GPU(duration=
|
| 736 |
def roformer_batch(path_input, path_output, model_key, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 737 |
found_files.clear()
|
| 738 |
logs.clear()
|
|
@@ -789,7 +789,7 @@ def roformer_batch(path_input, path_output, model_key, out_format, segment_size,
|
|
| 789 |
return "\n".join(logs)
|
| 790 |
|
| 791 |
@track_presence("Performing MDXC Batch Separation")
|
| 792 |
-
@spaces.GPU(duration=
|
| 793 |
def mdx23c_batch(path_input, path_output, model, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 794 |
found_files.clear()
|
| 795 |
logs.clear()
|
|
@@ -845,7 +845,7 @@ def mdx23c_batch(path_input, path_output, model, out_format, segment_size, overr
|
|
| 845 |
return "\n".join(logs)
|
| 846 |
|
| 847 |
@track_presence("Performing MDX-NET Batch Separation")
|
| 848 |
-
@spaces.GPU(duration=
|
| 849 |
def mdxnet_batch(path_input, path_output, model, out_format, hop_length, segment_size, denoise, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 850 |
found_files.clear()
|
| 851 |
logs.clear()
|
|
@@ -902,7 +902,7 @@ def mdxnet_batch(path_input, path_output, model, out_format, hop_length, segment
|
|
| 902 |
return "\n".join(logs)
|
| 903 |
|
| 904 |
@track_presence("Performing VR Arch Batch Separation")
|
| 905 |
-
@spaces.GPU(duration=
|
| 906 |
def vrarch_batch(path_input, path_output, model, out_format, window_size, aggression, tta, post_process, post_process_threshold, high_end_process, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 907 |
found_files.clear()
|
| 908 |
logs.clear()
|
|
@@ -961,7 +961,7 @@ def vrarch_batch(path_input, path_output, model, out_format, window_size, aggres
|
|
| 961 |
return "\n".join(logs)
|
| 962 |
|
| 963 |
@track_presence("Performing Demucs Batch Separation")
|
| 964 |
-
@spaces.GPU(duration=
|
| 965 |
def demucs_batch(path_input, path_output, model, out_format, shifts, segment_size, segments_enabled, overlap, batch_size, norm_thresh, amp_thresh, progress=gr.Progress()):
|
| 966 |
found_files.clear()
|
| 967 |
logs.clear()
|
|
|
|
| 516 |
}
|
| 517 |
|
| 518 |
@track_presence("Performing BS/Mel Roformer Separation")
|
| 519 |
+
@spaces.GPU(duration=300)
|
| 520 |
def roformer_separator(audio, model_key, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 521 |
roformer_model = roformer_models[model_key]
|
| 522 |
model_path = os.path.join(models_dir, roformer_model)
|
|
|
|
| 558 |
raise RuntimeError(f"Roformer separation failed: {e}") from e
|
| 559 |
|
| 560 |
@track_presence("Performing MDXC Separationn")
|
| 561 |
+
@spaces.GPU(duration=300)
|
| 562 |
def mdxc_separator(audio, model, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 563 |
model_path = os.path.join(models_dir, model)
|
| 564 |
try:
|
|
|
|
| 599 |
raise RuntimeError(f"MDX23C separation failed: {e}") from e
|
| 600 |
|
| 601 |
@track_presence("Performing MDX-NET Separation")
|
| 602 |
+
@spaces.GPU(duration=300)
|
| 603 |
def mdxnet_separator(audio, model, out_format, hop_length, segment_size, denoise, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 604 |
model_path = os.path.join(models_dir, model)
|
| 605 |
try:
|
|
|
|
| 641 |
raise RuntimeError(f"MDX-NET separation failed: {e}") from e
|
| 642 |
|
| 643 |
@track_presence("Performing VR Arch Separation")
|
| 644 |
+
@spaces.GPU(duration=300)
|
| 645 |
def vrarch_separator(audio, model, out_format, window_size, aggression, tta, post_process, post_process_threshold, high_end_process, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):
|
| 646 |
model_path = os.path.join(models_dir, model)
|
| 647 |
try:
|
|
|
|
| 685 |
raise RuntimeError(f"VR ARCH separation failed: {e}") from e
|
| 686 |
|
| 687 |
@track_presence("Performing Demucs Separation")
|
| 688 |
+
@spaces.GPU(duration=300)
|
| 689 |
def demucs_separator(audio, model, out_format, shifts, segment_size, segments_enabled, overlap, batch_size, norm_thresh, amp_thresh, progress=gr.Progress(track_tqdm=True)):
|
| 690 |
model_path = os.path.join(models_dir, model)
|
| 691 |
try:
|
|
|
|
| 732 |
return gr.update(visible=False)
|
| 733 |
|
| 734 |
@track_presence("Performing BS/Mel Roformer Batch Separation")
|
| 735 |
+
@spaces.GPU(duration=300)
|
| 736 |
def roformer_batch(path_input, path_output, model_key, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 737 |
found_files.clear()
|
| 738 |
logs.clear()
|
|
|
|
| 789 |
return "\n".join(logs)
|
| 790 |
|
| 791 |
@track_presence("Performing MDXC Batch Separation")
|
| 792 |
+
@spaces.GPU(duration=300)
|
| 793 |
def mdx23c_batch(path_input, path_output, model, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 794 |
found_files.clear()
|
| 795 |
logs.clear()
|
|
|
|
| 845 |
return "\n".join(logs)
|
| 846 |
|
| 847 |
@track_presence("Performing MDX-NET Batch Separation")
|
| 848 |
+
@spaces.GPU(duration=300)
|
| 849 |
def mdxnet_batch(path_input, path_output, model, out_format, hop_length, segment_size, denoise, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 850 |
found_files.clear()
|
| 851 |
logs.clear()
|
|
|
|
| 902 |
return "\n".join(logs)
|
| 903 |
|
| 904 |
@track_presence("Performing VR Arch Batch Separation")
|
| 905 |
+
@spaces.GPU(duration=300)
|
| 906 |
def vrarch_batch(path_input, path_output, model, out_format, window_size, aggression, tta, post_process, post_process_threshold, high_end_process, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress()):
|
| 907 |
found_files.clear()
|
| 908 |
logs.clear()
|
|
|
|
| 961 |
return "\n".join(logs)
|
| 962 |
|
| 963 |
@track_presence("Performing Demucs Batch Separation")
|
| 964 |
+
@spaces.GPU(duration=300)
|
| 965 |
def demucs_batch(path_input, path_output, model, out_format, shifts, segment_size, segments_enabled, overlap, batch_size, norm_thresh, amp_thresh, progress=gr.Progress()):
|
| 966 |
found_files.clear()
|
| 967 |
logs.clear()
|