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