amrnabih-FullTeck commited on
Commit ·
86f4ad0
1
Parent(s): 448953f
Add Qari-OCR Gradio app v4
Browse files
app.py
CHANGED
|
@@ -16,7 +16,9 @@ bnb_config = BitsAndBytesConfig(
|
|
| 16 |
bnb_4bit_compute_dtype=torch.float16,
|
| 17 |
)
|
| 18 |
|
| 19 |
-
model_name = "NAMAA-Space/Qari-OCR-0.2.2.1-Arabic-2B-Instruct"
|
|
|
|
|
|
|
| 20 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
| 21 |
model_name,
|
| 22 |
quantization_config=bnb_config,
|
|
|
|
| 16 |
bnb_4bit_compute_dtype=torch.float16,
|
| 17 |
)
|
| 18 |
|
| 19 |
+
# model_name = "NAMAA-Space/Qari-OCR-0.2.2.1-Arabic-2B-Instruct"
|
| 20 |
+
model_name = "NAMAA-Space/Qari-OCR-0.2.2.1-VL-2B-Instruct"
|
| 21 |
+
|
| 22 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
| 23 |
model_name,
|
| 24 |
quantization_config=bnb_config,
|