JosephTK commited on
Commit
5320025
1 Parent(s): bba67ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ image_processor = AutoImageProcessor.from_pretrained('hustvl/yolos-small')
6
  model = AutoModelForObjectDetection.from_pretrained('hustvl/yolos-small')
7
 
8
  def detect(image):
9
- inputs = feature_extractor(images=image, return_tensors="pt")
10
  outputs = model(**inputs)
11
 
12
  # convert outputs to COCO API
 
6
  model = AutoModelForObjectDetection.from_pretrained('hustvl/yolos-small')
7
 
8
  def detect(image):
9
+ inputs = image_processor(images=image, return_tensors="pt")
10
  outputs = model(**inputs)
11
 
12
  # convert outputs to COCO API