Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,9 +49,9 @@ def get_fingerprint_type(winner):
|
|
49 |
async def predict_fingerprint_api(file: UploadFile = File(...)):
|
50 |
try:
|
51 |
contents = await file.read()
|
52 |
-
print(f"CONTENTS\
|
53 |
image = Image.open(BytesIO(contents)).convert('L')
|
54 |
-
print(f"IMAGEN\
|
55 |
fingerprint_type = predict_fingerprint(image)
|
56 |
return {"prediction": fingerprint_type}
|
57 |
except Exception as e:
|
|
|
49 |
async def predict_fingerprint_api(file: UploadFile = File(...)):
|
50 |
try:
|
51 |
contents = await file.read()
|
52 |
+
print(f"CONTENTS\n\n{contents}")
|
53 |
image = Image.open(BytesIO(contents)).convert('L')
|
54 |
+
print(f"IMAGEN\n\n{image}")
|
55 |
fingerprint_type = predict_fingerprint(image)
|
56 |
return {"prediction": fingerprint_type}
|
57 |
except Exception as e:
|