artificialguybr commited on
Commit
f9ac62d
1 Parent(s): 5eb8f05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -90,8 +90,7 @@ def process_video(video, high_quality, target_language):
90
  subprocess.run(cmd, shell=True)
91
  # Debugging Step 3: Check if output video exists
92
  if not os.path.exists("output_video.mp4"):
93
- return "Error: output_video.mp4 was not generated."
94
-
95
  return "output_video.mp4"
96
 
97
  iface = gr.Interface(
 
90
  subprocess.run(cmd, shell=True)
91
  # Debugging Step 3: Check if output video exists
92
  if not os.path.exists("output_video.mp4"):
93
+ raise FileNotFoundError("Error: output_video.mp4 was not generated.")
 
94
  return "output_video.mp4"
95
 
96
  iface = gr.Interface(