Spaces:
Sleeping
Sleeping
Michela
commited on
Commit
·
03eaea3
1
Parent(s):
79cf959
Update app.py
Browse filesDecreased best match ratio for text highlights
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def find_best_match(needle, haystack):
|
|
| 43 |
|
| 44 |
# Find the best match that exceeds our threshold
|
| 45 |
best_match = None
|
| 46 |
-
best_match_ratio = 0.
|
| 47 |
|
| 48 |
for match in matches:
|
| 49 |
i, j, n = match
|
|
|
|
| 43 |
|
| 44 |
# Find the best match that exceeds our threshold
|
| 45 |
best_match = None
|
| 46 |
+
best_match_ratio = 0.5 # Initialize the best match ratio with our minimum threshold
|
| 47 |
|
| 48 |
for match in matches:
|
| 49 |
i, j, n = match
|