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