Spaces:
Running
on
A10G
Running
on
A10G
Shanshan Wang
commited on
Commit
•
2d2df74
1
Parent(s):
123a59c
update
Browse files
app.py
CHANGED
@@ -226,8 +226,6 @@ with gr.Blocks() as demo:
|
|
226 |
|
227 |
state= gr.State()
|
228 |
model_state = gr.State()
|
229 |
-
# tokenizer_state = gr.State()
|
230 |
-
# image_load_function_state = gr.State()
|
231 |
|
232 |
with gr.Row():
|
233 |
model_dropdown = gr.Dropdown(
|
@@ -370,8 +368,8 @@ with gr.Blocks() as demo:
|
|
370 |
|
371 |
gr.Examples(
|
372 |
examples=[
|
373 |
-
["assets/driver_license.png", "Extract the text from the image and fill the following json {'license_number':'',\n'full_name':'',\n'date_of_birth':'',\n'address':'',\n'issue_date':'',\n'expiration_date':'',\n}"],
|
374 |
["assets/handwritten-note-example.jpg", "Read the text on the image"],
|
|
|
375 |
["assets/invoice.png", "Please extract the following fields, and return the result in JSON format: supplier_name, supplier_address, customer_name, customer_address, invoice_number, invoice_total_amount, invoice_tax_amount"],
|
376 |
["assets/CBA-1H23-Results-Presentation_wheel.png", "What is the efficiency of H2O.AI in document processing?"],
|
377 |
],
|
|
|
226 |
|
227 |
state= gr.State()
|
228 |
model_state = gr.State()
|
|
|
|
|
229 |
|
230 |
with gr.Row():
|
231 |
model_dropdown = gr.Dropdown(
|
|
|
368 |
|
369 |
gr.Examples(
|
370 |
examples=[
|
|
|
371 |
["assets/handwritten-note-example.jpg", "Read the text on the image"],
|
372 |
+
["assets/driver_license.png", "Extract the text from the image and fill the following json {'license_number':'',\n'full_name':'',\n'date_of_birth':'',\n'address':'',\n'issue_date':'',\n'expiration_date':'',\n}"],
|
373 |
["assets/invoice.png", "Please extract the following fields, and return the result in JSON format: supplier_name, supplier_address, customer_name, customer_address, invoice_number, invoice_total_amount, invoice_tax_amount"],
|
374 |
["assets/CBA-1H23-Results-Presentation_wheel.png", "What is the efficiency of H2O.AI in document processing?"],
|
375 |
],
|