mrfakename commited on
Commit
bac223f
·
verified ·
1 Parent(s): 32dc88b
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -52,9 +52,19 @@ def run(image, message):
52
 
53
  with gr.Blocks() as demo:
54
  gr.Markdown("# Unofficial OS-Atlas demo")
55
- image = gr.Image(label="Image")
56
  text = gr.Textbox(label="Prompt")
57
  btn = gr.Button("Generate", variant="primary")
58
  output = gr.Textbox(interactive=False)
59
  btn.click(run, inputs=[image, text], outputs=output)
 
 
 
 
 
 
 
 
 
 
60
  demo.queue().launch()
 
52
 
53
  with gr.Blocks() as demo:
54
  gr.Markdown("# Unofficial OS-Atlas demo")
55
+ image = gr.Image(label="Image", type="filepath")
56
  text = gr.Textbox(label="Prompt")
57
  btn = gr.Button("Generate", variant="primary")
58
  output = gr.Textbox(interactive=False)
59
  btn.click(run, inputs=[image, text], outputs=output)
60
+ examples = gr.Examples([
61
+ [
62
+ 'examples/web_6f93090a-81f6-489e-bb35-1a2838b18c01.png',
63
+ 'In this UI screenshot, what is the position of the element corresponding to the command "switch language of current page" (with bbox)?'
64
+ ],
65
+ [
66
+ 'examples/web_dfacd48d-d2c2-492f-b94c-41e6a34ea99f.png',
67
+ 'In this UI screenshot, what is the position of the top button (with bbox)?'
68
+ ]
69
+ ], inputs=[image, text])
70
  demo.queue().launch()