Spaces:
Sleeping
Sleeping
TripleKdev
commited on
Commit
·
1e32822
1
Parent(s):
b0b5cad
add
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def background2white(image) :
|
|
49 |
@app.post("/predict/")
|
50 |
async def predict(file: UploadFile = File(...)):
|
51 |
image = Image.open(file.file)
|
52 |
-
|
53 |
image = background2white(image).convert("RGB")
|
54 |
|
55 |
# image.save('web/backend/input.jpg')
|
|
|
49 |
@app.post("/predict/")
|
50 |
async def predict(file: UploadFile = File(...)):
|
51 |
image = Image.open(file.file)
|
52 |
+
|
53 |
image = background2white(image).convert("RGB")
|
54 |
|
55 |
# image.save('web/backend/input.jpg')
|