merve HF Staff commited on
Commit
3c0706e
·
verified ·
1 Parent(s): 80305d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
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
- examples = [["./examples/password.jpg", "answer en What is the password?", "10"],
120
- ["./examples/menu.JPG", "ocr", "200"],
121
- ["./examples/mosque.jpg", "cap en", "50"],
122
- ["./examples/mosque.jpg", "describe en", "150"],
123
- ["./examples/infovqa.png", "answer en What is the targeted emission rate for France for 2023?", "10"],
124
- ["./examples/chartqa.png", "answer en What is this chart about?"],
125
- ["./examples/fiche.jpg", "answer en When is this ticket dated and how much did it cost?", "50"],
126
- ["./examples/howto.jpg", "answer en What does this image show?", "50"],
127
- ["./examples/billard1.jpg", "answer en How many red balls are there?", "10"],
128
- ["./examples/candy.JPG", "answer en How many candies are there?", "10"],
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(
 
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(