Spaces:
Running
Running
Update app.py
#1
by
Princceeee
- opened
app.py
CHANGED
|
@@ -109,9 +109,9 @@ def verify_signature(document_image, reference_number):
|
|
| 109 |
similarity_percentage = round(similarity * 100, 2)
|
| 110 |
|
| 111 |
# Classification based on similarity score
|
| 112 |
-
if similarity_percentage >
|
| 113 |
classification = "β
Matched"
|
| 114 |
-
elif
|
| 115 |
classification = "β οΈ Manual Check Recommended"
|
| 116 |
else:
|
| 117 |
classification = "β Not Matched"
|
|
|
|
| 109 |
similarity_percentage = round(similarity * 100, 2)
|
| 110 |
|
| 111 |
# Classification based on similarity score
|
| 112 |
+
if similarity_percentage > 50:
|
| 113 |
classification = "β
Matched"
|
| 114 |
+
elif 30 <= similarity_percentage <= 50:
|
| 115 |
classification = "β οΈ Manual Check Recommended"
|
| 116 |
else:
|
| 117 |
classification = "β Not Matched"
|