qqwjq1981 commited on
Commit
07652a2
·
verified ·
1 Parent(s): dd9a5ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ def translate_text(transcription_json, target_language):
85
  entry["start"], original_text, translated_text, entry["end"])
86
 
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
 
85
  entry["start"], original_text, translated_text, entry["end"])
86
 
87
  # Return the translated timestamps as a JSON string
88
+ return translated_json
89
 
90
  def add_transcript_to_video(video_path, translated_json, output_path):
91
  # Load the video file