GiorgioV commited on
Commit
9135753
·
verified ·
1 Parent(s): aa2eebd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -196,7 +196,8 @@ def generate_video(
196
  raise gr.Error("Please upload both a start and an end image.")
197
 
198
  progress(0.1, desc="Preprocessing images...")
199
-
 
200
 
201
  # Step 1: Process the start image to get our target dimensions based on the new rules.
202
  processed_start_image = process_image_for_video(start_image_pil)
@@ -260,8 +261,8 @@ with gr.Blocks() as app:
260
  with gr.Column():
261
  with gr.Group(elem_id="group_all"):
262
  with gr.Row():
263
- start_image = gr.Image(type="pil", label="Start Frame")
264
- end_image = gr.Image(type="pil", label="End Frame")
265
  prompt = gr.Textbox(label="Prompt", info="Describe the transition between the two images")
266
 
267
  with gr.Accordion("Advanced Settings", open=False):
 
196
  raise gr.Error("Please upload both a start and an end image.")
197
 
198
  progress(0.1, desc="Preprocessing images...")
199
+ start_image_pil = Image.open(start_image_pil)
200
+ end_image_pil = Image.open(end_image_pil)
201
 
202
  # Step 1: Process the start image to get our target dimensions based on the new rules.
203
  processed_start_image = process_image_for_video(start_image_pil)
 
261
  with gr.Column():
262
  with gr.Group(elem_id="group_all"):
263
  with gr.Row():
264
+ start_image = gr.Image(type="filepath", label="Start Frame")
265
+ end_image = gr.Image(type="filepath", label="End Frame")
266
  prompt = gr.Textbox(label="Prompt", info="Describe the transition between the two images")
267
 
268
  with gr.Accordion("Advanced Settings", open=False):