qqwjq1981 commited on
Commit
47f955a
·
verified ·
1 Parent(s): bc9d718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,6 +11,7 @@ from moviepy import (
11
  AudioFileClip,
12
  concatenate_videoclips
13
  )
 
14
  import subprocess
15
  import speech_recognition as sr
16
  import json
@@ -233,7 +234,6 @@ def update_translations(file, edited_table):
233
  raise ValueError(f"Error updating translations: {e}")
234
 
235
  def generate_voiceover(translated_json, language, output_audio_path):
236
- from gtts import gTTS
237
 
238
  # Concatenate translated text into a single string
239
  full_text = " ".join(entry["translated"] for entry in translated_json)
 
11
  AudioFileClip,
12
  concatenate_videoclips
13
  )
14
+ from gtts import gTTS
15
  import subprocess
16
  import speech_recognition as sr
17
  import json
 
234
  raise ValueError(f"Error updating translations: {e}")
235
 
236
  def generate_voiceover(translated_json, language, output_audio_path):
 
237
 
238
  # Concatenate translated text into a single string
239
  full_text = " ".join(entry["translated"] for entry in translated_json)