NeuralFalcon commited on
Commit
dbac26d
·
verified ·
1 Parent(s): 998f3b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -200,7 +200,8 @@ def generate_video(input_text, language_set, font_size, theme, canvas_size,llm_t
200
 
201
  # Add music to the generated video with fade-out effect
202
  music_file = "./music.WAV" # Path to your music file
203
-
 
204
  final_video = tts_file_name(input_text)
205
  # subprocess.run([
206
  # "ffmpeg", "-y", "-i", output_video, "-i", music_file,
 
200
 
201
  # Add music to the generated video with fade-out effect
202
  music_file = "./music.WAV" # Path to your music file
203
+ if not os.path.exists(music_file):
204
+ return output_video,output_video
205
  final_video = tts_file_name(input_text)
206
  # subprocess.run([
207
  # "ffmpeg", "-y", "-i", output_video, "-i", music_file,