sasha HF staff commited on
Commit
603ee20
1 Parent(s): 6f944e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -27,17 +27,16 @@ with gr.Blocks() as demo:
27
 
28
  with gr.Column():
29
  outputs=gr.Gallery().style(grid=[1], height="auto")
30
- labels = gr.Label()
31
 
32
  gr.Markdown("### Image Examples")
33
  gr.Examples(
34
  examples=["elton.jpg", "ken.jpg", "gaga.jpg", "taylor.jpg"],
35
  inputs=inputs,
36
- outputs=[outputs,labels],
37
  fn=query,
38
  cache_examples=True,
39
  )
40
- btn.click(query, inputs, [outputs, labels, description])
41
 
42
  demo.launch()
43
 
 
27
 
28
  with gr.Column():
29
  outputs=gr.Gallery().style(grid=[1], height="auto")
 
30
 
31
  gr.Markdown("### Image Examples")
32
  gr.Examples(
33
  examples=["elton.jpg", "ken.jpg", "gaga.jpg", "taylor.jpg"],
34
  inputs=inputs,
35
+ outputs=[outputs],
36
  fn=query,
37
  cache_examples=True,
38
  )
39
+ btn.click(query, inputs, [outputs])
40
 
41
  demo.launch()
42