Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ with gr.Blocks(title="π³DeepSeek-OCRπ³", theme=gr.themes.Soft()) as demo:
|
|
| 137 |
|
| 138 |
**π‘ How to use:**
|
| 139 |
1. **Upload an image** using the upload box.
|
| 140 |
-
2. Select a **
|
| 141 |
3. Choose a **Task Type**:
|
| 142 |
- **π Free OCR**: Extracts raw text from the image.
|
| 143 |
- **π Convert to Markdown**: Converts the document into Markdown, preserving structure.
|
|
@@ -151,7 +151,7 @@ with gr.Blocks(title="π³DeepSeek-OCRπ³", theme=gr.themes.Soft()) as demo:
|
|
| 151 |
with gr.Row():
|
| 152 |
with gr.Column(scale=1):
|
| 153 |
image_input = gr.Image(type="pil", label="πΌοΈ Upload Image", sources=["upload", "clipboard"])
|
| 154 |
-
model_size = gr.Dropdown(choices=["Tiny", "Small", "Base", "Large", "Gundam (Recommended)"], value="Gundam (Recommended)", label="βοΈ
|
| 155 |
task_type = gr.Dropdown(choices=["π Free OCR", "π Convert to Markdown", "π Parse Figure", "π Locate Object by Reference"], value="π Convert to Markdown", label="π Task Type")
|
| 156 |
ref_text_input = gr.Textbox(label="π Reference Text (for Locate task)", placeholder="e.g., the teacher, 20-10, a red car...", visible=False)
|
| 157 |
submit_btn = gr.Button("Process Image", variant="primary")
|
|
|
|
| 137 |
|
| 138 |
**π‘ How to use:**
|
| 139 |
1. **Upload an image** using the upload box.
|
| 140 |
+
2. Select a **Resolution**. `Gundam` is recommended for most documents.
|
| 141 |
3. Choose a **Task Type**:
|
| 142 |
- **π Free OCR**: Extracts raw text from the image.
|
| 143 |
- **π Convert to Markdown**: Converts the document into Markdown, preserving structure.
|
|
|
|
| 151 |
with gr.Row():
|
| 152 |
with gr.Column(scale=1):
|
| 153 |
image_input = gr.Image(type="pil", label="πΌοΈ Upload Image", sources=["upload", "clipboard"])
|
| 154 |
+
model_size = gr.Dropdown(choices=["Tiny", "Small", "Base", "Large", "Gundam (Recommended)"], value="Gundam (Recommended)", label="βοΈ Resolution Size")
|
| 155 |
task_type = gr.Dropdown(choices=["π Free OCR", "π Convert to Markdown", "π Parse Figure", "π Locate Object by Reference"], value="π Convert to Markdown", label="π Task Type")
|
| 156 |
ref_text_input = gr.Textbox(label="π Reference Text (for Locate task)", placeholder="e.g., the teacher, 20-10, a red car...", visible=False)
|
| 157 |
submit_btn = gr.Button("Process Image", variant="primary")
|