Spaces:
Running
on
Zero
Running
on
Zero
John Ho
commited on
Commit
·
828771a
1
Parent(s):
172ed15
changed output to JSON
Browse files
app.py
CHANGED
@@ -400,7 +400,7 @@ with gr.Blocks(css=css) as demo:
|
|
400 |
text_input = gr.Textbox(label="Text Input (optional)")
|
401 |
submit_btn = gr.Button(value="Submit")
|
402 |
with gr.Column():
|
403 |
-
|
404 |
output_img = gr.Image(label="Output Image")
|
405 |
|
406 |
gr.Examples(
|
@@ -409,7 +409,7 @@ with gr.Blocks(css=css) as demo:
|
|
409 |
["image2.jpg", "OCR with Region"],
|
410 |
],
|
411 |
inputs=[input_img, task_prompt],
|
412 |
-
outputs=[
|
413 |
fn=process_image,
|
414 |
cache_examples=True,
|
415 |
label="Try examples",
|
|
|
400 |
text_input = gr.Textbox(label="Text Input (optional)")
|
401 |
submit_btn = gr.Button(value="Submit")
|
402 |
with gr.Column():
|
403 |
+
output_json = gr.JSON(label="Output JSON")
|
404 |
output_img = gr.Image(label="Output Image")
|
405 |
|
406 |
gr.Examples(
|
|
|
409 |
["image2.jpg", "OCR with Region"],
|
410 |
],
|
411 |
inputs=[input_img, task_prompt],
|
412 |
+
outputs=[output_json, output_img],
|
413 |
fn=process_image,
|
414 |
cache_examples=True,
|
415 |
label="Try examples",
|