mrcuddle commited on
Commit
7a5c202
·
verified ·
1 Parent(s): 9514095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -61,9 +61,10 @@ with gr.Blocks() as demo:
61
  with gr.Column():
62
  text_output_video = gr.Video(label="Generated GIF")
63
 
 
64
  text_generate_button.click(
65
  fn=generate_gif,
66
- inputs=[text_prompt, text_negative_prompt, text_num_inference_steps, text_guidance_scale, text_seed],
67
  outputs=text_output_video
68
  )
69
 
@@ -88,4 +89,4 @@ with gr.Blocks() as demo:
88
  )
89
 
90
  # Launch the interface
91
- demo.launch()
 
61
  with gr.Column():
62
  text_output_video = gr.Video(label="Generated GIF")
63
 
64
+ # Fix: Do not use `None` in the inputs, instead pass an empty input for image
65
  text_generate_button.click(
66
  fn=generate_gif,
67
+ inputs=[text_prompt, None, text_negative_prompt, text_num_inference_steps, text_guidance_scale, text_seed],
68
  outputs=text_output_video
69
  )
70
 
 
89
  )
90
 
91
  # Launch the interface
92
+ demo.launch()