Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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([
|