multimodalart HF staff commited on
Commit
88651d7
·
verified ·
1 Parent(s): 80de021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -301,9 +301,9 @@ with block:
301
 
302
  ex = gr.Examples(examples=examples, fn=infer, inputs=[text, negative, guidance_scale], outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
303
  ex.dataset.headers = [""]
304
- negative.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], postprocess=False)
305
- text.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], postprocess=False)
306
- btn.click(infer, inputs=[text, negative, guidance_scale], outputs=[gallery], postprocess=False)
307
 
308
  #advanced_button.click(
309
  # None,
@@ -339,6 +339,5 @@ Despite how impressive being able to turn text into image is, beware to the fact
339
  </div>
340
  """
341
  )
342
-
343
 
344
  block.queue(concurrency_count=80, max_size=100).launch(max_threads=150, show_error=True)
 
301
 
302
  ex = gr.Examples(examples=examples, fn=infer, inputs=[text, negative, guidance_scale], outputs=[gallery, community_icon, loading_icon, share_button], cache_examples=False)
303
  ex.dataset.headers = [""]
304
+ negative.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery])
305
+ text.submit(infer, inputs=[text, negative, guidance_scale], outputs=[gallery])
306
+ btn.click(infer, inputs=[text, negative, guidance_scale], outputs=[gallery])
307
 
308
  #advanced_button.click(
309
  # None,
 
339
  </div>
340
  """
341
  )
 
342
 
343
  block.queue(concurrency_count=80, max_size=100).launch(max_threads=150, show_error=True)