chore: switch to Qwen2.5-VL-3B-Instruct for OCR
Browse files- Upgrade from Qwen2-VL-2B to Qwen2.5-VL-3B
- Improved model with better performance
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -10,8 +10,8 @@ from PIL import Image
|
|
| 10 |
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
|
| 11 |
from qwen_vl_utils import process_vision_info
|
| 12 |
|
| 13 |
-
# Qwen2-VL λͺ¨λΈ ID
|
| 14 |
-
MODEL_ID = "Qwen/Qwen2-VL-
|
| 15 |
|
| 16 |
|
| 17 |
def _extract_assistant_content(decoded: str) -> str:
|
|
@@ -298,7 +298,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
|
|
| 298 |
---
|
| 299 |
|
| 300 |
**βΉοΈ OCR λͺ¨λΈ**
|
| 301 |
-
- Qwen2-VL-
|
| 302 |
- νκ΅μ΄, μμ΄ λ± λ€κ΅μ΄ μ§μ
|
| 303 |
""")
|
| 304 |
|
|
|
|
| 10 |
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
|
| 11 |
from qwen_vl_utils import process_vision_info
|
| 12 |
|
| 13 |
+
# Qwen2.5-VL λͺ¨λΈ ID
|
| 14 |
+
MODEL_ID = "Qwen/Qwen2.5-VL-3B-Instruct"
|
| 15 |
|
| 16 |
|
| 17 |
def _extract_assistant_content(decoded: str) -> str:
|
|
|
|
| 298 |
---
|
| 299 |
|
| 300 |
**βΉοΈ OCR λͺ¨λΈ**
|
| 301 |
+
- Qwen2.5-VL-3B-Instruct - μ΅μ²¨λ¨ λΉμ -μΈμ΄ λͺ¨λΈ κΈ°λ° OCR (GPT-4o μμ€)
|
| 302 |
- νκ΅μ΄, μμ΄ λ± λ€κ΅μ΄ μ§μ
|
| 303 |
""")
|
| 304 |
|