Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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:
|