chore: upgrade to MedGemma-4B-IT for medical analysis
Browse files- Switch from Gemma-2-2B to MedGemma-4B-IT
- MedGemma is specifically trained for medical information
- Better medication analysis and explanations
๐ค Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -14,7 +14,7 @@ from qwen_vl_utils import process_vision_info
|
|
| 14 |
OCR_MODEL_ID = "Qwen/Qwen2.5-VL-7B-Instruct"
|
| 15 |
|
| 16 |
# ์ฝ ์ ๋ณด ๋ถ์ ๋ชจ๋ธ ID (์๋ฃ ์ ๋ฌธ)
|
| 17 |
-
MED_MODEL_ID = "google/
|
| 18 |
|
| 19 |
|
| 20 |
def _extract_assistant_content(decoded: str) -> str:
|
|
@@ -370,7 +370,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
|
|
| 370 |
|
| 371 |
**๐ค ๊ธฐ์ ์คํ**
|
| 372 |
- Qwen2.5-VL-7B-Instruct (OCR ํ
์คํธ ์ถ์ถ)
|
| 373 |
-
- Google
|
| 374 |
""")
|
| 375 |
|
| 376 |
if __name__ == "__main__":
|
|
|
|
| 14 |
OCR_MODEL_ID = "Qwen/Qwen2.5-VL-7B-Instruct"
|
| 15 |
|
| 16 |
# ์ฝ ์ ๋ณด ๋ถ์ ๋ชจ๋ธ ID (์๋ฃ ์ ๋ฌธ)
|
| 17 |
+
MED_MODEL_ID = "google/medgemma-4b-it"
|
| 18 |
|
| 19 |
|
| 20 |
def _extract_assistant_content(decoded: str) -> str:
|
|
|
|
| 370 |
|
| 371 |
**๐ค ๊ธฐ์ ์คํ**
|
| 372 |
- Qwen2.5-VL-7B-Instruct (OCR ํ
์คํธ ์ถ์ถ)
|
| 373 |
+
- Google MedGemma-4B-IT (์๋ฃ ์ ๋ฌธ ๋ชจ๋ธ - ์ฝ ์ ๋ณด ๋ถ์ ๋ฐ ์ค๋ช
)
|
| 374 |
""")
|
| 375 |
|
| 376 |
if __name__ == "__main__":
|