multimodalart HF staff commited on
Commit
c96d867
1 Parent(s): 35b72e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
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, community_icon, loading_icon, share_button], postprocess=False)
339
- btn.click(infer, inputs=text, outputs=[gallery, community_icon, loading_icon, share_button], postprocess=False)
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,