Update app.py
Browse files
app.py
CHANGED
|
@@ -216,7 +216,7 @@ if __name__ == "__main__":
|
|
| 216 |
with gr.Row():
|
| 217 |
with gr.Column(variant='panel', scale=5):
|
| 218 |
file = gr.File(label="Please upload a PDF or image", file_types=[".pdf", ".png", ".jpeg", ".jpg"])
|
| 219 |
-
max_pages = gr.Slider(1,
|
| 220 |
with gr.Row():
|
| 221 |
layout_mode = gr.Dropdown(["layoutlmv3", "doclayout_yolo"], label="Layout model", value="doclayout_yolo")
|
| 222 |
language = gr.Dropdown(all_lang, label="Language", value='auto')
|
|
|
|
| 216 |
with gr.Row():
|
| 217 |
with gr.Column(variant='panel', scale=5):
|
| 218 |
file = gr.File(label="Please upload a PDF or image", file_types=[".pdf", ".png", ".jpeg", ".jpg"])
|
| 219 |
+
max_pages = gr.Slider(1, 300, 10, step=1, label='Max convert pages')
|
| 220 |
with gr.Row():
|
| 221 |
layout_mode = gr.Dropdown(["layoutlmv3", "doclayout_yolo"], label="Layout model", value="doclayout_yolo")
|
| 222 |
language = gr.Dropdown(all_lang, label="Language", value='auto')
|