Overglitch commited on
Commit
a50056a
·
verified ·
1 Parent(s): e322f8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- im = Image.fromarray(BytesIO(contents))
54
- print(f"CONTENTS\n\n{im}")
 
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)