Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def draw_boxes(image, boxes):
|
|
43 |
return image
|
44 |
|
45 |
|
46 |
-
@app.post("/uploadfile
|
47 |
async def create_upload_file(file: UploadFile = File(...)):
|
48 |
contents = await file.read()
|
49 |
image = Image.open(io.BytesIO(contents))
|
|
|
43 |
return image
|
44 |
|
45 |
|
46 |
+
@app.post("/uploadfile")
|
47 |
async def create_upload_file(file: UploadFile = File(...)):
|
48 |
contents = await file.read()
|
49 |
image = Image.open(io.BytesIO(contents))
|