Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -273,7 +273,7 @@ def main():
|
|
| 273 |
gr.HTML("""
|
| 274 |
<div class="header-text">
|
| 275 |
<h1>π Multimodal: VLM Parsing</h1>
|
| 276 |
-
<p style="font-size: 1.1em;">An advanced Vision Language Model to parse documents and images into clean Markdown (
|
| 277 |
<div style="display: flex; justify-content: center; gap: 20px; margin: 15px 0;">
|
| 278 |
<a href="https://huggingface.co/collections/prithivMLmods/mm-vlm-parsing-68e33e52bfb9ae60b50602dc" target="_blank" style="text-decoration: none; font-weight: 500;">π€ Model Info</a>
|
| 279 |
<a href="https://github.com/PRITHIVSAKTHIUR/VLM-Parsing" target="_blank" style="text-decoration: none; font-weight: 500;">π» GitHub</a>
|
|
@@ -287,8 +287,8 @@ def main():
|
|
| 287 |
model_choice = gr.Dropdown(choices=["Logics-Parsing", "Gliese-OCR-7B-Post1.0", "olmOCR-7B-0825"], label="Select Model", value="Logics-Parsing")
|
| 288 |
file_input = gr.File(label="Upload PDF or Image", file_types=[".pdf", ".jpg", ".jpeg", ".png"], type="filepath")
|
| 289 |
|
| 290 |
-
process_btn = gr.Button("Process Document", variant="primary", size="lg")
|
| 291 |
-
clear_btn = gr.Button("Clear All", variant="secondary")
|
| 292 |
|
| 293 |
image_preview = gr.Image(label="Preview", type="pil", interactive=False, height=320)
|
| 294 |
|
|
|
|
| 273 |
gr.HTML("""
|
| 274 |
<div class="header-text">
|
| 275 |
<h1>π Multimodal: VLM Parsing</h1>
|
| 276 |
+
<p style="font-size: 1.1em;">An advanced Vision Language Model to parse documents and images into clean Markdown (html)</p>
|
| 277 |
<div style="display: flex; justify-content: center; gap: 20px; margin: 15px 0;">
|
| 278 |
<a href="https://huggingface.co/collections/prithivMLmods/mm-vlm-parsing-68e33e52bfb9ae60b50602dc" target="_blank" style="text-decoration: none; font-weight: 500;">π€ Model Info</a>
|
| 279 |
<a href="https://github.com/PRITHIVSAKTHIUR/VLM-Parsing" target="_blank" style="text-decoration: none; font-weight: 500;">π» GitHub</a>
|
|
|
|
| 287 |
model_choice = gr.Dropdown(choices=["Logics-Parsing", "Gliese-OCR-7B-Post1.0", "olmOCR-7B-0825"], label="Select Model", value="Logics-Parsing")
|
| 288 |
file_input = gr.File(label="Upload PDF or Image", file_types=[".pdf", ".jpg", ".jpeg", ".png"], type="filepath")
|
| 289 |
|
| 290 |
+
process_btn = gr.Button("πProcess Document", variant="primary", size="lg")
|
| 291 |
+
clear_btn = gr.Button("ποΈ Clear All", variant="secondary")
|
| 292 |
|
| 293 |
image_preview = gr.Image(label="Preview", type="pil", interactive=False, height=320)
|
| 294 |
|