Update app.py
Browse files
app.py
CHANGED
@@ -148,6 +148,8 @@ async def infer(input_image: UploadFile = File(...),
|
|
148 |
|
149 |
# Read the uploaded image
|
150 |
contents = await input_image.read()
|
|
|
|
|
151 |
image = Image.open(io.BytesIO(contents))
|
152 |
|
153 |
# Get the current event loop
|
|
|
148 |
|
149 |
# Read the uploaded image
|
150 |
contents = await input_image.read()
|
151 |
+
print(type(contents))
|
152 |
+
contents = bytes(contents)
|
153 |
image = Image.open(io.BytesIO(contents))
|
154 |
|
155 |
# Get the current event loop
|