Spaces:
Runtime error
Runtime error
Bug Fix for Translation
Browse files
main.py
CHANGED
@@ -276,7 +276,7 @@ async def get_translation(user_id: str, target_language: str = 'en'):
|
|
276 |
# Storing Translated Subtitles as JSON file (For Now)
|
277 |
translated_subtitles_path = os.path.join(user_folder_path, 'translated_subtitles.json')
|
278 |
with open(translated_subtitles_path, "w", encoding='utf-8') as file:
|
279 |
-
json.dump(
|
280 |
|
281 |
# Storing Translated Subtitles to S3
|
282 |
s3_subtitles_path = s3.upload_file(user_id, 'translated_subtitles.json', translated_subtitles_path)
|
|
|
276 |
# Storing Translated Subtitles as JSON file (For Now)
|
277 |
translated_subtitles_path = os.path.join(user_folder_path, 'translated_subtitles.json')
|
278 |
with open(translated_subtitles_path, "w", encoding='utf-8') as file:
|
279 |
+
json.dump(translated_subtitles_path, file)
|
280 |
|
281 |
# Storing Translated Subtitles to S3
|
282 |
s3_subtitles_path = s3.upload_file(user_id, 'translated_subtitles.json', translated_subtitles_path)
|