Noha90 commited on
Commit
08b0e25
·
1 Parent(s): 248c755

change model path

Browse files
Files changed (1) hide show
  1. predict.py +1 -1
predict.py CHANGED
@@ -30,7 +30,7 @@ class DeiT(nn.Module):
30
  return outputs.logits
31
 
32
  # Load model
33
- model_path = hf_hub_download(repo_id="Noha90/AML_16", filename="deit_best_model.pth", repo_type="space")
34
  print("Model path:", model_path)
35
  model = DeiT(num_classes=len(class_names))
36
  state_dict = torch.load(model_path, map_location="cpu")
 
30
  return outputs.logits
31
 
32
  # Load model
33
+ model_path = hf_hub_download(repo_id="Noha90/AML_16", filename="deit_best_model.pth")
34
  print("Model path:", model_path)
35
  model = DeiT(num_classes=len(class_names))
36
  state_dict = torch.load(model_path, map_location="cpu")