Spaces:
Lucenscat
/
Runtime error

multimodalart HF staff commited on
Commit
73b5d03
1 Parent(s): 6bd1314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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
- 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>
 
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>