myhloli commited on
Commit
f3ed5b1
·
verified ·
1 Parent(s): 05b2e55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -226,12 +226,12 @@ def main():
226
  with gr.Row():
227
  max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
228
  with gr.Row():
229
- backend = gr.Dropdown(["pipeline", "vlm-sglang-engine"], label="Backend", value="pipeline")
230
- with gr.Row(visible=True) as ocr_options:
231
  language = gr.Dropdown(all_lang, label='Language', value='ch')
232
  with gr.Row(visible=False) as client_options:
233
  url = gr.Textbox(label='Server URL', value='http://localhost:30000', placeholder='http://localhost:30000')
234
- with gr.Row(visible=True) as pipeline_options:
235
  is_ocr = gr.Checkbox(label='Force enable OCR', value=False)
236
  formula_enable = gr.Checkbox(label='Enable formula recognition', value=True)
237
  table_enable = gr.Checkbox(label='Enable table recognition(test)', value=True)
 
226
  with gr.Row():
227
  max_pages = gr.Slider(1, 20, 10, step=1, label='Max convert pages')
228
  with gr.Row():
229
+ backend = gr.Dropdown(["pipeline", "vlm-sglang-engine"], label="Backend", value="vlm-sglang-engine")
230
+ with gr.Row(visible=False) as ocr_options:
231
  language = gr.Dropdown(all_lang, label='Language', value='ch')
232
  with gr.Row(visible=False) as client_options:
233
  url = gr.Textbox(label='Server URL', value='http://localhost:30000', placeholder='http://localhost:30000')
234
+ with gr.Row(visible=False) as pipeline_options:
235
  is_ocr = gr.Checkbox(label='Force enable OCR', value=False)
236
  formula_enable = gr.Checkbox(label='Enable formula recognition', value=True)
237
  table_enable = gr.Checkbox(label='Enable table recognition(test)', value=True)