Overglitch commited on
Commit
f066ec8
·
verified ·
1 Parent(s): 1a093d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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\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:
 
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: