Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,16 +121,16 @@ with gr.Blocks(css=css, theme=orange_red_theme) as demo:
|
|
| 121 |
num_top_classes=3
|
| 122 |
)
|
| 123 |
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
|
| 135 |
run_button.click(
|
| 136 |
fn=infer,
|
|
|
|
| 121 |
num_top_classes=3
|
| 122 |
)
|
| 123 |
|
| 124 |
+
gr.Examples(
|
| 125 |
+
examples=[
|
| 126 |
+
["./baklava.jpg", "dessert on a plate, baklava"],
|
| 127 |
+
["./cat.jpg", "a cat, two cats, three cats"],
|
| 128 |
+
["./cat.jpg", "two sleeping cats, two cats playing, three cats laying down"],
|
| 129 |
+
],
|
| 130 |
+
inputs=[image_input, text_input],
|
| 131 |
+
outputs=[metaclip_output],
|
| 132 |
+
fn=infer,
|
| 133 |
+
)
|
| 134 |
|
| 135 |
run_button.click(
|
| 136 |
fn=infer,
|