0-ma commited on
Commit
7f73a40
1 Parent(s): 6ca60fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,8 +13,8 @@ labels = [
13
  ]
14
  #images = [Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_circle.jpg", stream=True).raw),
15
  # Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_pentagone.jpg", stream=True).raw)]
16
- feature_extractor = AutoImageProcessor.from_pretrained('0-ma/swin-geometric-shapes-tiny')
17
- model = AutoModelForImageClassification.from_pretrained('0-ma/swin-geometric-shapes-tiny')
18
 
19
 
20
  print(predicted_labels)
 
13
  ]
14
  #images = [Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_circle.jpg", stream=True).raw),
15
  # Image.open(requests.get("https://raw.githubusercontent.com/0-ma/geometric-shape-detector/main/input/exemple_pentagone.jpg", stream=True).raw)]
16
+ feature_extractor = AutoImageProcessor.from_pretrained('0-ma/vit-geometric-shapes-tiny')
17
+ model = AutoModelForImageClassification.from_pretrained('0-ma/vit-geometric-shapes-tiny')
18
 
19
 
20
  print(predicted_labels)