Spaces:
Running
on
Zero
Running
on
Zero
Tunes examples a bit (using natural prompts, fit on a single page).
Browse files
app.py
CHANGED
@@ -116,18 +116,16 @@ with gr.Blocks(theme=gr.themes.Soft(),css="style.css") as demo:
|
|
116 |
inputs=chat_inputs,
|
117 |
outputs=chat_outputs,
|
118 |
)
|
119 |
-
examples = [["./examples/password.jpg", "
|
120 |
-
["./examples/menu.JPG", "
|
121 |
-
["./examples/mosque.jpg", "
|
122 |
-
["./examples/
|
123 |
-
|
124 |
-
|
125 |
-
["./examples/
|
126 |
-
["./examples/
|
127 |
-
|
128 |
-
|
129 |
-
["./examples/bowie.jpg", "answer en Who is this?", 10],
|
130 |
-
["./examples/ulges.jpg", "answer en Who is the author of this book?", 10]]
|
131 |
gr.Markdown("Example images are licensed CC0 by [akolesnikoff@](https://github.com/akolesnikoff), [mbosnjak@](https://github.com/mbosnjak), [maximneumann@](https://github.com/maximneumann) and [merve](https://huggingface.co/merve).")
|
132 |
|
133 |
gr.Examples(
|
@@ -144,8 +142,8 @@ with gr.Blocks(theme=gr.themes.Soft(),css="style.css") as demo:
|
|
144 |
annotated_image = gr.AnnotatedImage(label="Output")
|
145 |
|
146 |
examples = [["./examples/venice.jpg", "detect bird"],
|
147 |
-
["./examples/cats.png", "segment
|
148 |
-
["./examples/bee.jpg", "detect
|
149 |
["./examples/barsik.jpg", "segment cat"],
|
150 |
]
|
151 |
gr.Markdown("Example images are licensed CC0 by [akolesnikoff@](https://github.com/akolesnikoff), [mbosnjak@](https://github.com/mbosnjak), [maximneumann@](https://github.com/maximneumann) and [merve](https://huggingface.co/merve).")
|
|
|
116 |
inputs=chat_inputs,
|
117 |
outputs=chat_outputs,
|
118 |
)
|
119 |
+
examples = [["./examples/password.jpg", "what is the password", 10],
|
120 |
+
["./examples/menu.JPG", "read text", 200],
|
121 |
+
["./examples/mosque.jpg", "describe the image in great detail", 200],
|
122 |
+
["./examples/infovqa.png", "what is the targeted emission reduction for France for 2023", 10],
|
123 |
+
["./examples/chartqa.png", "for resolution-sensitive tasks, which variant is best", 50],
|
124 |
+
["./examples/fiche.jpg", "When is this ticket dated and how much did it cost?", 20],
|
125 |
+
["./examples/howto.jpg", "What does this image show?", 100],
|
126 |
+
["./examples/billard1.jpg", "How many white/yellow balls are there?", 10],
|
127 |
+
["./examples/bowie.jpg", "Who is this?", 10],
|
128 |
+
["./examples/ulges.jpg", "Who is the author of this book?", 10]]
|
|
|
|
|
129 |
gr.Markdown("Example images are licensed CC0 by [akolesnikoff@](https://github.com/akolesnikoff), [mbosnjak@](https://github.com/mbosnjak), [maximneumann@](https://github.com/maximneumann) and [merve](https://huggingface.co/merve).")
|
130 |
|
131 |
gr.Examples(
|
|
|
142 |
annotated_image = gr.AnnotatedImage(label="Output")
|
143 |
|
144 |
examples = [["./examples/venice.jpg", "detect bird"],
|
145 |
+
["./examples/cats.png", "segment cat behind"],
|
146 |
+
["./examples/bee.jpg", "detect red flower"],
|
147 |
["./examples/barsik.jpg", "segment cat"],
|
148 |
]
|
149 |
gr.Markdown("Example images are licensed CC0 by [akolesnikoff@](https://github.com/akolesnikoff), [mbosnjak@](https://github.com/mbosnjak), [maximneumann@](https://github.com/maximneumann) and [merve](https://huggingface.co/merve).")
|