myhloli commited on
Commit
b4f0f95
·
verified ·
1 Parent(s): ee6fe06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -207,12 +207,12 @@ if __name__ == "__main__":
207
  file = gr.File(label="Please upload a PDF or image", file_types=[".pdf", ".png", ".jpeg", ".jpg"])
208
  max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
209
  with gr.Row():
210
- layout_mode = gr.Dropdown(["layoutlmv3", "doclayout_yolo"], label="Layout model", value="layoutlmv3")
211
  language = gr.Dropdown(all_lang, label="Language", value="")
212
  with gr.Row():
213
  formula_enable = gr.Checkbox(label="Enable formula recognition", value=True)
214
  is_ocr = gr.Checkbox(label="Force enable OCR", value=False)
215
- table_enable = gr.Checkbox(label="Enable table recognition(test)", value=False)
216
  with gr.Row():
217
  change_bu = gr.Button("Convert")
218
  clear_bu = gr.ClearButton(value="Clear")
 
207
  file = gr.File(label="Please upload a PDF or image", file_types=[".pdf", ".png", ".jpeg", ".jpg"])
208
  max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
209
  with gr.Row():
210
+ layout_mode = gr.Dropdown(["layoutlmv3", "doclayout_yolo"], label="Layout model", value="doclayout_yolo")
211
  language = gr.Dropdown(all_lang, label="Language", value="")
212
  with gr.Row():
213
  formula_enable = gr.Checkbox(label="Enable formula recognition", value=True)
214
  is_ocr = gr.Checkbox(label="Force enable OCR", value=False)
215
+ table_enable = gr.Checkbox(label="Enable table recognition(test)", value=True)
216
  with gr.Row():
217
  change_bu = gr.Button("Convert")
218
  clear_bu = gr.ClearButton(value="Clear")