Spaces:
Sleeping
Sleeping
Update src/main.py
Browse files- src/main.py +4 -0
src/main.py
CHANGED
|
@@ -286,6 +286,10 @@ def song_cover_pipeline(main_vocals, backup_vocals, voice_model, pitch_change, k
|
|
| 286 |
display_progress('[~] Applying overall pitch change', 0.85, is_webui, progress)
|
| 287 |
backup_vocals = pitch_shift(backup_vocals, pitch_change_all)
|
| 288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
display_progress('[~] Combining AI Vocals and Instrumentals...', 0.9, is_webui, progress)
|
| 290 |
combine_audio([ai_vocals_mixed_path, backup_vocals], ai_cover_path, main_gain, backup_gain, inst_gain, output_format)
|
| 291 |
|
|
|
|
| 286 |
display_progress('[~] Applying overall pitch change', 0.85, is_webui, progress)
|
| 287 |
backup_vocals = pitch_shift(backup_vocals, pitch_change_all)
|
| 288 |
|
| 289 |
+
if backup_vocals == "":
|
| 290 |
+
print("####### ENTRATO QUA, BACKUP VOCALS NON DATI IN INPUT ########")
|
| 291 |
+
return ai_vocals_mixed_path
|
| 292 |
+
|
| 293 |
display_progress('[~] Combining AI Vocals and Instrumentals...', 0.9, is_webui, progress)
|
| 294 |
combine_audio([ai_vocals_mixed_path, backup_vocals], ai_cover_path, main_gain, backup_gain, inst_gain, output_format)
|
| 295 |
|