KwabsHug commited on
Commit
2931540
1 Parent(s): ef96b5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -186,7 +186,7 @@ def splittext(string, split_positions):
186
  return FinalOutput[2:]
187
 
188
  def create_dictionary(word_list, word_dict = {}):
189
- word_list = word_list.split(" ")
190
  for word in word_list:
191
  key = word[:2]
192
  if key not in word_dict:
 
186
  return FinalOutput[2:]
187
 
188
  def create_dictionary(word_list, word_dict = {}):
189
+ word_list = set(word_list.split(" "))
190
  for word in word_list:
191
  key = word[:2]
192
  if key not in word_dict: