Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import time
|
|
6 |
|
7 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
8 |
|
9 |
-
feature_extractor = ViTFeatureExtractor.from_pretrained('google/vit-base-patch16-224')
|
10 |
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224').to(device)
|
11 |
|
12 |
def predict(image):
|
|
|
6 |
|
7 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
8 |
|
9 |
+
feature_extractor = ViTFeatureExtractor.from_pretrained('google/vit-base-patch16-224')
|
10 |
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224').to(device)
|
11 |
|
12 |
def predict(image):
|