Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
37 |
fn=query,
|
38 |
cache_examples=True,
|
39 |
)
|
40 |
-
btn.click(query, inputs, [outputs
|
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 |
|