Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def translate_text(transcription_json, target_language):
|
|
| 87 |
# Return the translated timestamps as a JSON string
|
| 88 |
return json.dumps(translated_json, indent=4)
|
| 89 |
|
| 90 |
-
def add_transcript_to_video(video_path,
|
| 91 |
# Load the video file
|
| 92 |
video = VideoFileClip(video_path)
|
| 93 |
|
|
|
|
| 87 |
# Return the translated timestamps as a JSON string
|
| 88 |
return json.dumps(translated_json, indent=4)
|
| 89 |
|
| 90 |
+
def add_transcript_to_video(video_path, translated_json, output_path):
|
| 91 |
# Load the video file
|
| 92 |
video = VideoFileClip(video_path)
|
| 93 |
|