Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
255c5c9
1
Parent(s):
b89131a
Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ css = """
|
|
163 |
.image_duplication{position: absolute; width: 100px; left: 50px}
|
164 |
"""
|
165 |
|
166 |
-
block = gr.Blocks(css=css
|
167 |
|
168 |
examples = [
|
169 |
[
|
@@ -304,9 +304,9 @@ with block:
|
|
304 |
|
305 |
ex = gr.Examples(examples=examples, fn=infer, inputs=[text, negative, guidance_scale], outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
|
306 |
ex.dataset.headers = [""]
|
307 |
-
negative.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery])
|
308 |
-
text.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery])
|
309 |
-
btn.click(infer, inputs=[text, negative, guidance_scale], outputs=[gallery])
|
310 |
|
311 |
#advanced_button.click(
|
312 |
# None,
|
|
|
163 |
.image_duplication{position: absolute; width: 100px; left: 50px}
|
164 |
"""
|
165 |
|
166 |
+
block = gr.Blocks(css=css)
|
167 |
|
168 |
examples = [
|
169 |
[
|
|
|
304 |
|
305 |
ex = gr.Examples(examples=examples, fn=infer, inputs=[text, negative, guidance_scale], outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
|
306 |
ex.dataset.headers = [""]
|
307 |
+
negative.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], concurrency_limit=80)
|
308 |
+
text.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], concurrency_limit=80)
|
309 |
+
btn.click(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], concurrency_limit=80)
|
310 |
|
311 |
#advanced_button.click(
|
312 |
# None,
|