myhloli commited on
Commit
2c7a76e
·
verified ·
1 Parent(s): 3a5fd54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -218,7 +218,10 @@ if __name__ == "__main__":
218
  file = gr.File(label="Please upload a PDF or image", file_types=[".pdf", ".png", ".jpeg", ".jpg"])
219
  max_pages = gr.Slider(1, 20, 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')
223
  with gr.Row():
224
  formula_enable = gr.Checkbox(label="Enable formula recognition", value=True)
 
218
  file = gr.File(label="Please upload a PDF or image", file_types=[".pdf", ".png", ".jpeg", ".jpg"])
219
  max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
220
  with gr.Row():
221
+ layout_mode = gr.Dropdown([
222
+ # "layoutlmv3",
223
+ "doclayout_yolo"
224
+ ],label="Layout model", value="doclayout_yolo")
225
  language = gr.Dropdown(all_lang, label="Language", value='auto')
226
  with gr.Row():
227
  formula_enable = gr.Checkbox(label="Enable formula recognition", value=True)