Update app.py
Browse files
app.py
CHANGED
|
@@ -31,6 +31,10 @@ def longest_common_substring(s1, s2):
|
|
| 31 |
|
| 32 |
return s1[best_match_start:best_match_end]
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
def not_found_in(q, data):
|
| 35 |
for l in data:
|
| 36 |
count = 0
|
|
|
|
| 31 |
|
| 32 |
return s1[best_match_start:best_match_end]
|
| 33 |
|
| 34 |
+
|
| 35 |
+
with open("dataset.txt", "r") as f:
|
| 36 |
+
lines = f.read().rstrip("\n").split("\n")[:40000]
|
| 37 |
+
|
| 38 |
def not_found_in(q, data):
|
| 39 |
for l in data:
|
| 40 |
count = 0
|