anon5 commited on
Commit
b7a4dc1
·
verified ·
1 Parent(s): 03688b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,7 +9,8 @@ import torchvision.transforms as transforms
9
  CLASSES = ['guro', 'pigs', 'proofs', 'protyk', 'safe', 'shit']
10
  NUM_CLASSES = len(CLASSES)
11
 
12
- device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
 
13
 
14
  model = models.resnet18(pretrained=True)
15
  model.fc = nn.Linear(model.fc.in_features, NUM_CLASSES)
 
9
  CLASSES = ['guro', 'pigs', 'proofs', 'protyk', 'safe', 'shit']
10
  NUM_CLASSES = len(CLASSES)
11
 
12
+ #device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
13
+ device = 'cpu'
14
 
15
  model = models.resnet18(pretrained=True)
16
  model.fc = nn.Linear(model.fc.in_features, NUM_CLASSES)