Spaces:
Runtime error
Runtime error
Update app.py
#1
by
Chemsseddine
- opened
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
|
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)
|