Spaces:
Runtime error
Runtime error
Commit
·
ac6f4b7
1
Parent(s):
5c12cf0
Update app.py
Browse files
app.py
CHANGED
@@ -25,15 +25,15 @@ def check3(inp, inp2):
|
|
25 |
# Work
|
26 |
def get_matches(text):
|
27 |
# prepare text
|
28 |
-
|
29 |
|
30 |
countl=0
|
31 |
-
queue=len(
|
32 |
# try to correct it
|
33 |
try:
|
34 |
##return(difflib.get_close_matches(text, dictionary)) #[0].replace("\n", "")
|
35 |
for x in range(queue):
|
36 |
-
|
37 |
if countl<=queue:
|
38 |
countl+=1
|
39 |
except Exception as ex: # Print error if error
|
|
|
25 |
# Work
|
26 |
def get_matches(text):
|
27 |
# prepare text
|
28 |
+
textR=text.split
|
29 |
|
30 |
countl=0
|
31 |
+
queue=len(textR)
|
32 |
# try to correct it
|
33 |
try:
|
34 |
##return(difflib.get_close_matches(text, dictionary)) #[0].replace("\n", "")
|
35 |
for x in range(queue):
|
36 |
+
return(difflib.get_close_matches(textR[countl], dictionary))
|
37 |
if countl<=queue:
|
38 |
countl+=1
|
39 |
except Exception as ex: # Print error if error
|