Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 = "
|
99 |
points = [[87.0, 908.0, 2.0, 456.0, 972.0, 3.0]]), "Question answering. What is the objective?"],
|
100 |
-
[PromptValue(image = "
|
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,
|