Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
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="
|
230 |
-
with gr.Row(visible=
|
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=
|
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)
|