Spaces:
Running
on
Zero
Running
on
Zero
artificialguybr
commited on
Commit
•
f9ac62d
1
Parent(s):
5eb8f05
Update app.py
Browse files
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 |
-
|
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(
|