andsteing commited on
Commit
f00f935
·
verified ·
1 Parent(s): 570c9a3

Tunes examples a bit (using natural prompts, fit on a single page).

Browse files
Files changed (1) hide show
  1. app.py +12 -14
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", "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?", 50],
125
- ["./examples/fiche.jpg", "answer en When is this ticket dated and how much did it cost?", 20],
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(
@@ -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 cats"],
148
- ["./examples/bee.jpg", "detect bee"],
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).")