anyonehomep1mane commited on
Commit ·
61c7585
1
Parent(s): 2657cd6
Code Changes
Browse files
app.py
CHANGED
|
@@ -96,17 +96,17 @@ with gr.Blocks(title="AI Document Summarizer") as demo:
|
|
| 96 |
num_top_classes=5
|
| 97 |
)
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
|
| 111 |
run_button.click(
|
| 112 |
fn=infer,
|
|
|
|
| 96 |
num_top_classes=5
|
| 97 |
)
|
| 98 |
|
| 99 |
+
with gr.Row(equal_height=True):
|
| 100 |
+
gr.Examples(
|
| 101 |
+
examples=[
|
| 102 |
+
["./baklava.jpg", "dessert on a plate, baklava"],
|
| 103 |
+
["./cat.jpg", "a cat, two cats, three cats"],
|
| 104 |
+
["./cat.jpg", "two sleeping cats, two cats playing, three cats laying down"],
|
| 105 |
+
],
|
| 106 |
+
inputs=[image_input, text_input],
|
| 107 |
+
outputs=[metaclip_output],
|
| 108 |
+
fn=infer,
|
| 109 |
+
)
|
| 110 |
|
| 111 |
run_button.click(
|
| 112 |
fn=infer,
|