Spaces:
Sleeping
Sleeping
Update src/main.py
Browse files- src/main.py +8 -8
src/main.py
CHANGED
@@ -250,15 +250,15 @@ def song_cover_pipeline(main_vocals, backup_vocals, voice_model, pitch_change, k
|
|
250 |
mdx_model_params = json.load(infile)
|
251 |
|
252 |
# local audio file
|
|
|
|
|
|
|
|
|
|
|
253 |
else:
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
song_id = get_hash(main_vocals)
|
258 |
-
else:
|
259 |
-
error_msg = f'{main_vocals} does not exist.'
|
260 |
-
song_id = None
|
261 |
-
raise_exception(error_msg, is_webui)
|
262 |
|
263 |
song_dir = os.path.join(output_dir, song_id)
|
264 |
print(f"DEBUG PRINT: song_dir {song_dir}")
|
|
|
250 |
mdx_model_params = json.load(infile)
|
251 |
|
252 |
# local audio file
|
253 |
+
|
254 |
+
input_type = 'local'
|
255 |
+
main_vocals = main_vocals.strip('\"')
|
256 |
+
if os.path.exists(main_vocals):
|
257 |
+
song_id = get_hash(main_vocals)
|
258 |
else:
|
259 |
+
error_msg = f'{main_vocals} does not exist.'
|
260 |
+
song_id = None
|
261 |
+
raise_exception(error_msg, is_webui)
|
|
|
|
|
|
|
|
|
|
|
262 |
|
263 |
song_dir = os.path.join(output_dir, song_id)
|
264 |
print(f"DEBUG PRINT: song_dir {song_dir}")
|