Muhammad Taqi Raza commited on
Commit
78295a1
·
1 Parent(s): 8f2d7c5
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -85,7 +85,7 @@ def run_epic_inference(video_path, caption, motion_type):
85
 
86
  # Locate the output video
87
  output_video = Path(output_dir) / f"amalfi-coast_traj_{traj_name}.mp4"
88
- if video_output_path.exists():
89
  return logs, str(video_output_path)
90
  else:
91
  return f"Inference succeeded but no output video found in {output_dir}", None
 
85
 
86
  # Locate the output video
87
  output_video = Path(output_dir) / f"amalfi-coast_traj_{traj_name}.mp4"
88
+ if video_output_path:
89
  return logs, str(video_output_path)
90
  else:
91
  return f"Inference succeeded but no output video found in {output_dir}", None