tokeron commited on
Commit
304f5cd
1 Parent(s): e2d57c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -95,21 +95,20 @@ with gr.Blocks() as demo:
95
  outputs = [gallery]
96
 
97
  gr.on(
98
- triggers=[
99
- prompt.input,
100
- generate_button.click,
101
- guidance_scale.input,
102
- scale.input,
103
- control_scale.input,
104
- seed.input,
105
- ],
106
- fn=generate_images,
107
- inputs=inputs,
108
- outputs=outputs,
109
- show_progress="full",
110
- show_api=False,
111
- trigger_mode="always_last",
112
- )
113
 
114
  gr.Markdown(article)
115
 
 
95
  outputs = [gallery]
96
 
97
  gr.on(
98
+ triggers=[
99
+ prompt.submit,
100
+ generate_button.click,
101
+ seed.input,
102
+ model.input
103
+ ],
104
+ fn=generate_images,
105
+ inputs=inputs,
106
+ outputs=outputs,
107
+ show_progress="full",
108
+ show_api=False,
109
+ trigger_mode="always_last",
110
+ )
111
+ generate_button = gr.Button("Generate Image")
 
112
 
113
  gr.Markdown(article)
114