Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -115,19 +115,18 @@ with gr.Blocks(theme=gr.themes.Soft(),css="style.css") as demo:
|
|
115 |
inputs=chat_inputs,
|
116 |
outputs=chat_outputs,
|
117 |
)
|
118 |
-
|
119 |
-
|
120 |
-
["./examples/
|
121 |
-
["./examples/mosque.jpg", "
|
122 |
-
["./examples/
|
123 |
-
|
124 |
-
|
125 |
-
["./examples/
|
126 |
-
["./examples/
|
127 |
-
["./examples/
|
128 |
-
|
129 |
-
["./examples/
|
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(
|
|
|
115 |
inputs=chat_inputs,
|
116 |
outputs=chat_outputs,
|
117 |
)
|
118 |
+
examples = [["./examples/password.jpg", "answer en What is the password?", 10],
|
119 |
+
["./examples/menu.JPG", "ocr", 200],
|
120 |
+
["./examples/mosque.jpg", "cap en", 50],
|
121 |
+
["./examples/mosque.jpg", "describe en", 150],
|
122 |
+
["./examples/infovqa.png", "answer en What is the targeted emission rate for France for 2023?", 10],
|
123 |
+
["./examples/chartqa.png", "answer en What is this chart about?", 50],
|
124 |
+
["./examples/fiche.jpg", "answer en When is this ticket dated and how much did it cost?", 20],
|
125 |
+
["./examples/howto.jpg", "answer en What does this image show?", 50],
|
126 |
+
["./examples/billard1.jpg", "answer en How many red balls are there?", 10],
|
127 |
+
["./examples/candy.JPG", "answer en How many candies are there?", 10],
|
128 |
+
["./examples/bowie.jpg", "answer en Who is this?", 10],
|
129 |
+
["./examples/ulges.jpg", "answer en Who is the author of this book?", 10]]
|
|
|
130 |
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).")
|
131 |
|
132 |
gr.Examples(
|