Update app.py
Browse files
app.py
CHANGED
|
@@ -277,7 +277,7 @@ def upload_and_manage(file, language, mode="transcription"):
|
|
| 277 |
add_transcript_to_video(file.name, translated_json, output_video_path)
|
| 278 |
|
| 279 |
# Step 4 (Optional): Generate voiceover if mode is "transcription_voiceover"
|
| 280 |
-
if mode == "
|
| 281 |
generate_voiceover(translated_json, language, voiceover_path)
|
| 282 |
replace_audio_in_video(output_video_path, voiceover_path, output_video_path)
|
| 283 |
|
|
|
|
| 277 |
add_transcript_to_video(file.name, translated_json, output_video_path)
|
| 278 |
|
| 279 |
# Step 4 (Optional): Generate voiceover if mode is "transcription_voiceover"
|
| 280 |
+
if mode == "Transcription with Voiceover":
|
| 281 |
generate_voiceover(translated_json, language, voiceover_path)
|
| 282 |
replace_audio_in_video(output_video_path, voiceover_path, output_video_path)
|
| 283 |
|