Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
73b5d03
1
Parent(s):
6bd1314
Update app.py
Browse files
app.py
CHANGED
@@ -264,27 +264,27 @@ with block:
|
|
264 |
label="Guidance Scale", minimum=0, maximum=50, value=9, step=0.1
|
265 |
)
|
266 |
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
|
273 |
-
|
274 |
None,
|
275 |
[],
|
276 |
[],
|
277 |
_js=share_js,
|
278 |
-
|
279 |
-
|
280 |
"""
|
281 |
<div class="footer">
|
282 |
<p>Model by <a href="https://huggingface.co/stabilityai" style="text-decoration: underline;" target="_blank">StabilityAI</a> - backend running JAX on TPUs due to generous support of <a href="https://sites.research.google/trc/about/" style="text-decoration: underline;" target="_blank">Google TRC program</a> - Gradio Demo by 🤗 Hugging Face
|
283 |
</p>
|
284 |
</div>
|
285 |
"""
|
286 |
-
|
287 |
-
|
288 |
gr.HTML(
|
289 |
"""<div class="acknowledgments">
|
290 |
<p><h4>LICENSE</h4>
|
|
|
264 |
label="Guidance Scale", minimum=0, maximum=50, value=9, step=0.1
|
265 |
)
|
266 |
|
267 |
+
ex = gr.Examples(examples=examples, fn=infer, inputs=[text, negative, guidance_scale], outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
|
268 |
+
#ex.dataset.headers = [""]
|
269 |
+
negative.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], postprocess=False)
|
270 |
+
text.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], postprocess=False)
|
271 |
+
btn.click(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], postprocess=False)
|
272 |
|
273 |
+
share_button.click(
|
274 |
None,
|
275 |
[],
|
276 |
[],
|
277 |
_js=share_js,
|
278 |
+
)
|
279 |
+
gr.HTML(
|
280 |
"""
|
281 |
<div class="footer">
|
282 |
<p>Model by <a href="https://huggingface.co/stabilityai" style="text-decoration: underline;" target="_blank">StabilityAI</a> - backend running JAX on TPUs due to generous support of <a href="https://sites.research.google/trc/about/" style="text-decoration: underline;" target="_blank">Google TRC program</a> - Gradio Demo by 🤗 Hugging Face
|
283 |
</p>
|
284 |
</div>
|
285 |
"""
|
286 |
+
)
|
287 |
+
with gr.Accordion(label="License", open=False):
|
288 |
gr.HTML(
|
289 |
"""<div class="acknowledgments">
|
290 |
<p><h4>LICENSE</h4>
|