Spaces:
Running
on
Zero
Running
on
Zero
upload app
Browse files
app.py
CHANGED
|
@@ -572,14 +572,14 @@ def create_gradio_interface():
|
|
| 572 |
"Qwen2.5-VL-3B-Abliterated-Caption-it(caption)", "Nanonets-OCR-s(ocr)",
|
| 573 |
"LMM-R1-MGT-PerceReason(reason)", "OCRFlux-3B(ocr)", "TBAC-VLR1-3B(open-r1)",
|
| 574 |
"SmolVLM-500M-Instruct(smol)", "llava-onevision-qwen2-0.5b-ov-hf(mini)"],
|
| 575 |
-
label="Select Model", value= "
|
| 576 |
)
|
| 577 |
|
| 578 |
prompt_input = gr.Textbox(label="Query Input", placeholder="Enter your query here...", value="Examine the image")
|
| 579 |
image_input = gr.Image(label="Upload Image", type="pil", sources=['upload'], height=300)
|
| 580 |
|
| 581 |
with gr.Accordion("Advanced Settings (PDF)", open=False):
|
| 582 |
-
max_new_tokens = gr.Slider(minimum=512, maximum=8192, value=
|
| 583 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
| 584 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
| 585 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|
|
|
|
| 572 |
"Qwen2.5-VL-3B-Abliterated-Caption-it(caption)", "Nanonets-OCR-s(ocr)",
|
| 573 |
"LMM-R1-MGT-PerceReason(reason)", "OCRFlux-3B(ocr)", "TBAC-VLR1-3B(open-r1)",
|
| 574 |
"SmolVLM-500M-Instruct(smol)", "llava-onevision-qwen2-0.5b-ov-hf(mini)"],
|
| 575 |
+
label="Select Model", value= "Megalodon-OCR-Sync-0713(ocr)"
|
| 576 |
)
|
| 577 |
|
| 578 |
prompt_input = gr.Textbox(label="Query Input", placeholder="Enter your query here...", value="Examine the image")
|
| 579 |
image_input = gr.Image(label="Upload Image", type="pil", sources=['upload'], height=300)
|
| 580 |
|
| 581 |
with gr.Accordion("Advanced Settings (PDF)", open=False):
|
| 582 |
+
max_new_tokens = gr.Slider(minimum=512, maximum=8192, value=1024, step=256, label="Max New Tokens")
|
| 583 |
temperature = gr.Slider(label="Temperature", minimum=0.1, maximum=4.0, step=0.1, value=0.6)
|
| 584 |
top_p = gr.Slider(label="Top-p (nucleus sampling)", minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
| 585 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50)
|