Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,21 +95,20 @@ with gr.Blocks() as demo:
|
|
95 |
outputs = [gallery]
|
96 |
|
97 |
gr.on(
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
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 |
|