Update app.py
Browse files
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 = [
|