Spaces:
Runtime error
Runtime error
Commit
·
22e6c01
1
Parent(s):
10ce6d1
Update app.py
Browse files
app.py
CHANGED
@@ -161,8 +161,8 @@ with block:
|
|
161 |
ex = gr.Examples(examples=examples, fn=infer, inputs=[text, pip_sd, pip_freeu], outputs=[image_1, image_2], cache_examples=False)
|
162 |
ex.dataset.headers = [""]
|
163 |
|
164 |
-
|
165 |
-
|
166 |
|
167 |
block.launch()
|
168 |
# block.queue(default_enabled=False).launch(share=False)
|
|
|
161 |
ex = gr.Examples(examples=examples, fn=infer, inputs=[text, pip_sd, pip_freeu], outputs=[image_1, image_2], cache_examples=False)
|
162 |
ex.dataset.headers = [""]
|
163 |
|
164 |
+
text.submit(infer, inputs=[text, pip_sd, pip_freeu], outputs=[image_1, image_2])
|
165 |
+
btn.click(infer, inputs=[text, pip_sd, pip_freeu], outputs=[image_1, image_2])
|
166 |
|
167 |
block.launch()
|
168 |
# block.queue(default_enabled=False).launch(share=False)
|