xx
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def progress_bar_html(label: str) -> str:
|
|
| 36 |
model_name = "HuggingFaceTB/SmolVLM2-256M-Video-Instruct"
|
| 37 |
|
| 38 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 39 |
-
model_name, dtype=torch.
|
| 40 |
).eval()
|
| 41 |
|
| 42 |
processor = AutoProcessor.from_pretrained(model_name)
|
|
|
|
| 36 |
model_name = "HuggingFaceTB/SmolVLM2-256M-Video-Instruct"
|
| 37 |
|
| 38 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 39 |
+
model_name, dtype=torch.float32, device_map="auto"
|
| 40 |
).eval()
|
| 41 |
|
| 42 |
processor = AutoProcessor.from_pretrained(model_name)
|