Dhahlan2000 commited on
Commit
3effc0b
·
verified ·
1 Parent(s): 13a5c69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import ViTForImageClassification, ViTFeatureExtractor
4
  from PIL import Image
5
 
6
  # Load model and feature extractor
7
- model = ViTForImageClassification.from_pretrained('shahmi0519/mango_artificial', num_labels=10, ignore_mismatched_sizes=True)
8
  feature_extractor = ViTFeatureExtractor.from_pretrained('shahmi0519/mango_artificial')
9
 
10
  # Move to GPU if available
 
4
  from PIL import Image
5
 
6
  # Load model and feature extractor
7
+ model = ViTForImageClassification.from_pretrained('shahmi0519/mango_artificial', num_labels=2, ignore_mismatched_sizes=True)
8
  feature_extractor = ViTFeatureExtractor.from_pretrained('shahmi0519/mango_artificial')
9
 
10
  # Move to GPU if available