LLDDWW Claude commited on
Commit
664b899
Β·
1 Parent(s): 28a7334

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>

Files changed (1) hide show
  1. app.py +3 -3
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-2B-Instruct"
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-2B-Instruct - μ΅œμ²¨λ‹¨ λΉ„μ „-μ–Έμ–΄ λͺ¨λΈ 기반 OCR (GPT-4o μˆ˜μ€€)
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