profnecrya commited on
Commit
ac6f4b7
·
1 Parent(s): 5c12cf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,15 +25,15 @@ def check3(inp, inp2):
25
  # Work
26
  def get_matches(text):
27
  # prepare text
28
- text=text.split
29
 
30
  countl=0
31
- queue=len(text)
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
- print(difflib.get_close_matches(text[countl], dictionary))
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