Update app.py
Browse files
app.py
CHANGED
|
@@ -12,12 +12,12 @@ import os, stat, io
|
|
| 12 |
|
| 13 |
# Load the model in half-precision on the available device(s)
|
| 14 |
model = AutoModelForVision2Seq.from_pretrained(
|
| 15 |
-
"
|
| 16 |
torch_dtype=torch.float32,
|
| 17 |
_attn_implementation="eager",
|
| 18 |
device_map="cpu"
|
| 19 |
)
|
| 20 |
-
processor = AutoProcessor.from_pretrained("
|
| 21 |
|
| 22 |
def array_to_image(image_array):
|
| 23 |
if image_array is None:
|
|
|
|
| 12 |
|
| 13 |
# Load the model in half-precision on the available device(s)
|
| 14 |
model = AutoModelForVision2Seq.from_pretrained(
|
| 15 |
+
"HuggingFaceTB/SmolVLM-500M-Instruct",
|
| 16 |
torch_dtype=torch.float32,
|
| 17 |
_attn_implementation="eager",
|
| 18 |
device_map="cpu"
|
| 19 |
)
|
| 20 |
+
processor = AutoProcessor.from_pretrained("HuggingFaceTB/SmolVLM-500M-Instruct")
|
| 21 |
|
| 22 |
def array_to_image(image_array):
|
| 23 |
if image_array is None:
|