Spaces:
Runtime error
Runtime error
Commit ·
824e9cc
1
Parent(s): 97251ee
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ def detect(pdf):
|
|
| 21 |
for i in range(len(imgs)):
|
| 22 |
result = model(np.array(imgs[i]))
|
| 23 |
result_pred=result.pred
|
|
|
|
| 24 |
for j in range(len(result_pred[0])):
|
| 25 |
if result_pred[0][j][5]==1 and result_pred[i][j][4]>0.5:
|
| 26 |
return "find signature in page " +str(i)
|
|
|
|
| 21 |
for i in range(len(imgs)):
|
| 22 |
result = model(np.array(imgs[i]))
|
| 23 |
result_pred=result.pred
|
| 24 |
+
print(result_pred)
|
| 25 |
for j in range(len(result_pred[0])):
|
| 26 |
if result_pred[0][j][5]==1 and result_pred[i][j][4]>0.5:
|
| 27 |
return "find signature in page " +str(i)
|