Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|