Update app.py
Browse files
app.py
CHANGED
@@ -139,8 +139,10 @@ def upload_and_manage(file, platform, language):
|
|
139 |
# Save transcript to JSON
|
140 |
save_transcript_to_json(timestamps, json_file)
|
141 |
|
|
|
|
|
142 |
# Add transcript to video based on timestamps
|
143 |
-
add_transcript_to_video(file.name,
|
144 |
|
145 |
# Mock posting action (you can implement this as needed)
|
146 |
post_message = mock_post_to_platform(platform, file.name)
|
|
|
139 |
# Save transcript to JSON
|
140 |
save_transcript_to_json(timestamps, json_file)
|
141 |
|
142 |
+
translated_timestamps = translate_text(timestamps, language)
|
143 |
+
|
144 |
# Add transcript to video based on timestamps
|
145 |
+
add_transcript_to_video(file.name, translated_timestamps, output_video_path)
|
146 |
|
147 |
# Mock posting action (you can implement this as needed)
|
148 |
post_message = mock_post_to_platform(platform, file.name)
|