Spanicin commited on
Commit
4988ed2
·
verified ·
1 Parent(s): d06c74e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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