Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ async def predict_fingerprint_api(file: UploadFile = File(...)):
|
|
60 |
try:
|
61 |
contents = await file.read()
|
62 |
print(f"contenido:\n{contents}")
|
63 |
-
image = Image.open(BytesIO(contents))
|
64 |
print(f"imagen:\n{image}")
|
65 |
fingerprint_type = predict_fingerprint(image)
|
66 |
|
|
|
60 |
try:
|
61 |
contents = await file.read()
|
62 |
print(f"contenido:\n{contents}")
|
63 |
+
image = Image.open(BytesIO(contents)).convert('L')
|
64 |
print(f"imagen:\n{image}")
|
65 |
fingerprint_type = predict_fingerprint(image)
|
66 |
|