Onix4oDedy commited on
Commit
1b673e4
verified
1 Parent(s): 72089c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def solve_captcha(data_bytes: bytes = None, file_name: str = None):
68
  if data_bytes is None:
69
  print('[CAPTCHA RESOLVER NN] 袩校小孝袨孝袗 袙袦袝小孝袨 袘袗袡孝袨袙!')
70
  return None
71
- if data_bytes is np.ndarray:
72
  print('Img is ndarray')
73
  img = decode_img_array(data_bytes)
74
  else:
 
68
  if data_bytes is None:
69
  print('[CAPTCHA RESOLVER NN] 袩校小孝袨孝袗 袙袦袝小孝袨 袘袗袡孝袨袙!')
70
  return None
71
+ if isinstance(data_bytes,np.ndarray):
72
  print('Img is ndarray')
73
  img = decode_img_array(data_bytes)
74
  else: