Spaces:
Paused
Paused
Commit ·
558e6f8
1
Parent(s): b47ec58
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def process_video(Video, target_language):
|
|
| 73 |
|
| 74 |
# 5. Incorporar legenda
|
| 75 |
output_video = "output_video.mp4" # Definindo output_video
|
| 76 |
-
run(["ffmpeg", "-i",
|
| 77 |
os.unlink(temp_transcript_file.name)
|
| 78 |
os.unlink(temp_translated_file.name)
|
| 79 |
|
|
@@ -88,7 +88,7 @@ iface = gr.Interface(
|
|
| 88 |
],
|
| 89 |
outputs=gr.Video(),
|
| 90 |
live=False,
|
| 91 |
-
title="
|
| 92 |
)
|
| 93 |
|
| 94 |
iface.launch()
|
|
|
|
| 73 |
|
| 74 |
# 5. Incorporar legenda
|
| 75 |
output_video = "output_video.mp4" # Definindo output_video
|
| 76 |
+
run(["ffmpeg", "-i", Video, "-vf", f"subtitles={temp_translated_file.name}", output_video])
|
| 77 |
os.unlink(temp_transcript_file.name)
|
| 78 |
os.unlink(temp_translated_file.name)
|
| 79 |
|
|
|
|
| 88 |
],
|
| 89 |
outputs=gr.Video(),
|
| 90 |
live=False,
|
| 91 |
+
title="VIDEO TRANSCRIPTION AND TRANSLATION"
|
| 92 |
)
|
| 93 |
|
| 94 |
iface.launch()
|