saburq commited on
Commit
fe28f2e
1 Parent(s): f01b4da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ with demo:
42
  button = gr.components.Button(label="Generate")
43
  # when the button is clicked, call the generate_image_predictions function
44
  # and pass in the prompt as an argument
45
- button.submit(generate_image_predictions, inputs=input, outputs=output)
46
 
47
 
48
  demo.launch()
 
42
  button = gr.components.Button(label="Generate")
43
  # when the button is clicked, call the generate_image_predictions function
44
  # and pass in the prompt as an argument
45
+ button.click(generate_image_predictions, inputs=input, outputs=output)
46
 
47
 
48
  demo.launch()