Drazcat-AI commited on
Commit
bd025b7
·
verified ·
1 Parent(s): 6632aa8

Update handler.py

Browse files
Files changed (1) hide show
  1. 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