Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,6 @@ def load_model():
|
|
| 22 |
return Qwen2VLForConditionalGeneration.from_pretrained(
|
| 23 |
"Qwen/Qwen2-VL-2B-Instruct",
|
| 24 |
torch_dtype=torch.float32, # Use float32 for CPU
|
| 25 |
-
device_map="cpu"
|
| 26 |
)
|
| 27 |
|
| 28 |
# Load the model
|
|
|
|
| 22 |
return Qwen2VLForConditionalGeneration.from_pretrained(
|
| 23 |
"Qwen/Qwen2-VL-2B-Instruct",
|
| 24 |
torch_dtype=torch.float32, # Use float32 for CPU
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
# Load the model
|