GIGAParviz commited on
Commit
c2ae097
·
verified ·
1 Parent(s): 95d3f9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ path = "Captcha(Best).pt"
85
 
86
  from torchvision import transforms
87
  model = ModelWithAttention(10).to(device)
88
- model.load_state_dict(torch.load(path) , map_location=torch.device('cpu'))
89
 
90
 
91
  transform = transforms.Compose([
 
85
 
86
  from torchvision import transforms
87
  model = ModelWithAttention(10).to(device)
88
+ model.load_state_dict(torch.load(path , map_location=torch.device('cpu')))
89
 
90
 
91
  transform = transforms.Compose([