Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -26,7 +26,7 @@ def load_model_and_config(model_path, class_path, config_path):
|
|
| 26 |
)
|
| 27 |
|
| 28 |
# Cargar modelo
|
| 29 |
-
model_path = model_path.replace('model.safetensors')
|
| 30 |
model = ViTForImageClassification.from_pretrained(model_path)
|
| 31 |
model.eval()
|
| 32 |
|
|
|
|
| 26 |
)
|
| 27 |
|
| 28 |
# Cargar modelo
|
| 29 |
+
model_path = model_path.replace('model.safetensors', '')
|
| 30 |
model = ViTForImageClassification.from_pretrained(model_path)
|
| 31 |
model.eval()
|
| 32 |
|