merve HF Staff commited on
Commit
cf50b90
·
verified ·
1 Parent(s): 20bec0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -96,7 +96,7 @@ with gr.Blocks(css="style.css") as demo:
96
  label="Max New Tokens",
97
  info="Set to larger for longer generation.",
98
  minimum=10,
99
- maximum=100,
100
  value=20,
101
  step=10,
102
  )
@@ -115,13 +115,18 @@ with gr.Blocks(css="style.css") as demo:
115
  outputs=chat_outputs,
116
  )
117
 
118
- examples = [["./examples/password.jpg", "What is the password?"],
119
- ["./examples/howto.jpg", "What does this image show?"],
120
- ["./examples/billard1.jpg", "How many red balls are there?"],
121
- ["./examples/bowie.jpg", "Who is this?"],
122
- ["./examples/emu.jpg", "What animal is this?"],
123
- ["./examples/bee.jpg", "What is on the flower?"],
124
- ["./examples/ulges.jpg", "Who is the author of this book?"]]
 
 
 
 
 
125
  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).")
126
 
127
  gr.Examples(
 
96
  label="Max New Tokens",
97
  info="Set to larger for longer generation.",
98
  minimum=10,
99
+ maximum=300,
100
  value=20,
101
  step=10,
102
  )
 
115
  outputs=chat_outputs,
116
  )
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?"],
124
+ ["./examples/fiche.jpg", "answer en When is this ticket dated and how much did it cost?", "50"],
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(