Spaces:
Sleeping
Sleeping
debug
Browse files- src/webui.py +3 -3
src/webui.py
CHANGED
@@ -172,7 +172,7 @@ def song_cover_pipeline_with_model_download(song_input, model_url, model_name, p
|
|
172 |
try:
|
173 |
model_path = download_and_extract_model(model_url, model_name, progress)
|
174 |
print(f"Model path: {model_path}")
|
175 |
-
|
176 |
inst_gain, index_rate, filter_radius, rms_mix_rate, f0_method, crepe_hop_length,
|
177 |
protect, pitch_all, reverb_rm_size, reverb_wet, reverb_dry, reverb_damping,
|
178 |
output_format, progress)
|
@@ -185,10 +185,10 @@ def song_cover_pipeline_with_model_download(song_input, model_url, model_name, p
|
|
185 |
oldest_folder = output_folders.pop(0)
|
186 |
shutil.rmtree(os.path.join(output_dir, oldest_folder))
|
187 |
|
188 |
-
return
|
189 |
except gr.Error as e:
|
190 |
print(f"Error: {str(e)}")
|
191 |
-
return
|
192 |
finally:
|
193 |
if model_path:
|
194 |
cleanup_temp_model(model_path)
|
|
|
172 |
try:
|
173 |
model_path = download_and_extract_model(model_url, model_name, progress)
|
174 |
print(f"Model path: {model_path}")
|
175 |
+
vocal_only_path, vocal_backing_path = song_cover_pipeline(song_input, model_path, pitch, keep_files, is_webui, main_gain, backup_gain,
|
176 |
inst_gain, index_rate, filter_radius, rms_mix_rate, f0_method, crepe_hop_length,
|
177 |
protect, pitch_all, reverb_rm_size, reverb_wet, reverb_dry, reverb_damping,
|
178 |
output_format, progress)
|
|
|
185 |
oldest_folder = output_folders.pop(0)
|
186 |
shutil.rmtree(os.path.join(output_dir, oldest_folder))
|
187 |
|
188 |
+
return vocal_only_path, vocal_backing_path
|
189 |
except gr.Error as e:
|
190 |
print(f"Error: {str(e)}")
|
191 |
+
return None, None # Return error message and None for the second output
|
192 |
finally:
|
193 |
if model_path:
|
194 |
cleanup_temp_model(model_path)
|