abidlabs HF Staff commited on
Commit
e835ae7
·
1 Parent(s): 5fb3af5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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').to(device)
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):