jbilcke-hf HF Staff Claude commited on
Commit
5dd7501
·
1 Parent(s): 099dc67

Fix video generation error: 'str' object has no attribute 'name'

Browse files

Changed video_file.name to video_file since video_file is already a string path, not a file object.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def generate_recammaster_video(
77
 
78
  # Copy uploaded video to temp directory
79
  input_video_path = os.path.join(temp_dir, "input.mp4")
80
- shutil.copy(video_file.name, input_video_path)
81
 
82
  # Extract frames
83
  progress(0.2, desc="Extracting video frames...")
 
77
 
78
  # Copy uploaded video to temp directory
79
  input_video_path = os.path.join(temp_dir, "input.mp4")
80
+ shutil.copy(video_file, input_video_path)
81
 
82
  # Extract frames
83
  progress(0.2, desc="Extracting video frames...")