Spaces:
Sleeping
Sleeping
Luis J Camargo commited on
Commit ·
4367c0b
1
Parent(s): cc5e5ca
example fix
Browse files
app.py
CHANGED
|
@@ -319,14 +319,7 @@ with gr.Blocks(theme=gr.themes.Ocean(), css=custom_css) as demo:
|
|
| 319 |
|
| 320 |
with gr.Row():
|
| 321 |
with gr.Column(scale=5):
|
| 322 |
-
img_input = gr.Image(label="Upload Image", type="filepath"
|
| 323 |
-
examples=[
|
| 324 |
-
"dataset2.jpg",
|
| 325 |
-
"dataset3.jpg",
|
| 326 |
-
"dataset5.jpg",
|
| 327 |
-
"dataset8.jpg",
|
| 328 |
-
"dataset10.jpg",
|
| 329 |
-
])
|
| 330 |
mode_selector = gr.Dropdown(
|
| 331 |
choices=["Full Document Parsing", "Formula Recognition", "Table Recognition", "Text Recognition", "Feature Spotting"],
|
| 332 |
value="Full Document Parsing",
|
|
@@ -337,6 +330,17 @@ with gr.Blocks(theme=gr.themes.Ocean(), css=custom_css) as demo:
|
|
| 337 |
unwarp_check = gr.Checkbox(label="Document Unwarping / Orientation Fix", value=False)
|
| 338 |
|
| 339 |
btn_run = gr.Button("🚀 Start Analysis", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
|
| 341 |
with gr.Column(scale=7):
|
| 342 |
with gr.Tabs():
|
|
|
|
| 319 |
|
| 320 |
with gr.Row():
|
| 321 |
with gr.Column(scale=5):
|
| 322 |
+
img_input = gr.Image(label="Upload Image", type="filepath")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
mode_selector = gr.Dropdown(
|
| 324 |
choices=["Full Document Parsing", "Formula Recognition", "Table Recognition", "Text Recognition", "Feature Spotting"],
|
| 325 |
value="Full Document Parsing",
|
|
|
|
| 330 |
unwarp_check = gr.Checkbox(label="Document Unwarping / Orientation Fix", value=False)
|
| 331 |
|
| 332 |
btn_run = gr.Button("🚀 Start Analysis", variant="primary")
|
| 333 |
+
gr.Examples(
|
| 334 |
+
examples=[
|
| 335 |
+
"dataset2.jpg",
|
| 336 |
+
"dataset3.jpg",
|
| 337 |
+
"dataset5.jpg",
|
| 338 |
+
"dataset8.jpg",
|
| 339 |
+
"dataset10.jpg",
|
| 340 |
+
],
|
| 341 |
+
inputs=img_input,
|
| 342 |
+
label="Click an example to load it",
|
| 343 |
+
)
|
| 344 |
|
| 345 |
with gr.Column(scale=7):
|
| 346 |
with gr.Tabs():
|