Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
c96d867
1
Parent(s):
35b72e6
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def infer(prompt):
|
|
| 62 |
image_b64 = (f"data:image/png;base64,{image}")
|
| 63 |
images.append(image_b64)
|
| 64 |
|
| 65 |
-
return images
|
| 66 |
|
| 67 |
|
| 68 |
css = """
|
|
@@ -335,8 +335,8 @@ with block:
|
|
| 335 |
ex = gr.Examples(examples=examples, fn=infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
|
| 336 |
ex.dataset.headers = [""]
|
| 337 |
|
| 338 |
-
text.submit(infer, inputs=text, outputs=[gallery
|
| 339 |
-
btn.click(infer, inputs=text, outputs=[gallery
|
| 340 |
|
| 341 |
advanced_button.click(
|
| 342 |
None,
|
|
|
|
| 62 |
image_b64 = (f"data:image/png;base64,{image}")
|
| 63 |
images.append(image_b64)
|
| 64 |
|
| 65 |
+
return images
|
| 66 |
|
| 67 |
|
| 68 |
css = """
|
|
|
|
| 335 |
ex = gr.Examples(examples=examples, fn=infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
|
| 336 |
ex.dataset.headers = [""]
|
| 337 |
|
| 338 |
+
text.submit(infer, inputs=text, outputs=[gallery], postprocess=False)
|
| 339 |
+
btn.click(infer, inputs=text, outputs=[gallery], postprocess=False)
|
| 340 |
|
| 341 |
advanced_button.click(
|
| 342 |
None,
|