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