khang119966 commited on
Commit
5ab0da1
Β·
verified Β·
1 Parent(s): 2fd9f05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 **Model Size**. `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,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="βš™οΈ Model 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")
 
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")