artificialguybr commited on
Commit
42c5043
1 Parent(s): b273a44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,9 +84,9 @@ def process_video(video, high_quality, target_language):
84
  if not os.path.exists("output_video.mp4"):
85
  return "Error: output_video.mp4 was not generated."
86
 
87
- return {"file": "output_video.mp4"}
88
  except Exception as e:
89
- return {"error": f"An unexpected error occurred: {str(e)}"}
90
 
91
  iface = gr.Interface(
92
  fn=process_video,
 
84
  if not os.path.exists("output_video.mp4"):
85
  return "Error: output_video.mp4 was not generated."
86
 
87
+ return "output_video.mp4" # Return the file path directly
88
  except Exception as e:
89
+ return {"error": f"An unexpected error occurred: {str(e)}"} # Keep the error as a dictionary
90
 
91
  iface = gr.Interface(
92
  fn=process_video,