aach456 commited on
Commit
59899f0
1 Parent(s): fb68207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,9 +80,9 @@ def combine_audio_video(audio_file, video_file):
80
  return output_file
81
 
82
  # Gradio interface
83
- def interface(image, prompt, negative_prompt, video_length, music_prompt, unconditional):
84
- # Convert the uploaded image to a PIL Image
85
- image = Image.open(io.BytesIO(image.read()))
86
 
87
  # Generate video and track progress
88
  video_file = generate_video(image, prompt, negative_prompt, video_length)
 
80
  return output_file
81
 
82
  # Gradio interface
83
+ def interface(image_path, prompt, negative_prompt, video_length, music_prompt, unconditional):
84
+ # Convert the uploaded image path to a PIL Image
85
+ image = Image.open(image_path)
86
 
87
  # Generate video and track progress
88
  video_file = generate_video(image, prompt, negative_prompt, video_length)