uzi007 commited on
Commit
a737ed3
1 Parent(s): 468fae8

Bug Fix for Translation

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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(media_formats, file)
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)