Chemsseddine commited on
Commit
b5d9f9f
1 Parent(s): 1a5ca8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def process_image(image):
103
  width, height = image.size
104
 
105
  # create model input
106
- encoding = processor(image, return_tensors="pt")
107
  del encoding["pixel_values"]
108
  # run inference
109
  outputs = model(**encoding)
 
103
  width, height = image.size
104
 
105
  # create model input
106
+ encoding = processor(image)
107
  del encoding["pixel_values"]
108
  # run inference
109
  outputs = model(**encoding)