merve HF staff commited on
Commit
a5eec45
β€’
1 Parent(s): c997d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -87,17 +87,17 @@ with gr.Blocks(title="UDOP") as demo:
87
 
88
  with gr.Row():
89
  with gr.Column():
90
- im = ImagePrompter(type="pil")
91
- text_prompt = gr.Textbox()
92
  btn = gr.Button("Submit")
93
  with gr.Column():
94
  output = gr.Textbox(label="UDOP Output")
95
 
96
  with gr.Row():
97
  gr.Examples(
98
- examples = [[PromptValue(image = "/content/dummy_pdf.png",
99
  points = [[87.0, 908.0, 2.0, 456.0, 972.0, 3.0]]), "Question answering. What is the objective?"],
100
- [PromptValue(image = "/content/docvqa_example (3).png",
101
  points = [[]]), "Question answering. How much is the total?"]],
102
  inputs=[im, text_prompt],
103
  outputs=output,
 
87
 
88
  with gr.Row():
89
  with gr.Column():
90
+ im = ImagePrompter(type="pil", label="Input Image")
91
+ text_prompt = gr.Textbox("Text Prompt")
92
  btn = gr.Button("Submit")
93
  with gr.Column():
94
  output = gr.Textbox(label="UDOP Output")
95
 
96
  with gr.Row():
97
  gr.Examples(
98
+ examples = [[PromptValue(image = "./dummy_pdf.png",
99
  points = [[87.0, 908.0, 2.0, 456.0, 972.0, 3.0]]), "Question answering. What is the objective?"],
100
+ [PromptValue(image = "./docvqa_example (3).png",
101
  points = [[]]), "Question answering. How much is the total?"]],
102
  inputs=[im, text_prompt],
103
  outputs=output,