roll-ai commited on
Commit
cdeb702
Β·
verified Β·
1 Parent(s): 9ebab32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -77,14 +77,13 @@ def run_flovd(prompt, image, cam_pose_name):
77
  video_path = os.path.join(OUTPUT_PATH, "generated_videos", video_filename)
78
 
79
  print(f"πŸ“ Looking for generated video at: {video_path}")
80
-
81
  if os.path.exists(video_path):
82
- print("βœ… Video generation successful.")
83
  return video_path
84
  else:
85
- print("❌ Video generation failed or file not found.")
86
- return f"Video generation failed. Expected output file not found at: {video_path}"
87
-
88
  except Exception as e:
89
  print(f"πŸ”₯ Exception occurred: {str(e)}")
90
  return f"An error occurred during generation: {str(e)}"
 
77
  video_path = os.path.join(OUTPUT_PATH, "generated_videos", video_filename)
78
 
79
  print(f"πŸ“ Looking for generated video at: {video_path}")
 
80
  if os.path.exists(video_path):
81
+ print("βœ… Video generated:", video_path)
82
  return video_path
83
  else:
84
+ print("❌ File missing:", video_path)
85
+ return gr.Textbox.update(value=f"[ERROR] File not found at: {video_path}")
86
+
87
  except Exception as e:
88
  print(f"πŸ”₯ Exception occurred: {str(e)}")
89
  return f"An error occurred during generation: {str(e)}"