Dhahlan2000 commited on
Commit
50807d3
·
verified ·
1 Parent(s): 1251656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -10,6 +10,7 @@ feature_extractor = ViTFeatureExtractor.from_pretrained('Dhahlan2000/freshness_d
10
  # Move to GPU if available
11
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  model = model.to(device)
 
13
 
14
  # Class labels (modify according to your model)
15
  class_labels = [
 
10
  # Move to GPU if available
11
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  model = model.to(device)
13
+ model.eval()
14
 
15
  # Class labels (modify according to your model)
16
  class_labels = [