Spaces:
Sleeping
Sleeping
bradley6597
commited on
Commit
•
177665a
1
Parent(s):
7cc26a6
Deal with lowercase
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ english_dict = pd.read_csv("corncob_lowercase.txt",
|
|
8 |
english_dict = english_dict.reset_index(drop = True)
|
9 |
english_dict = english_dict.dropna()
|
10 |
def spell_bee_solver(no_centre, centre):
|
11 |
-
full_set = set(no_centre + centre)
|
12 |
-
spell_bee_solver = english_dict[english_dict['word'].str.contains(str(centre), regex = False)]
|
13 |
final_words = list()
|
14 |
for i in range(0, spell_bee_solver.shape[0]):
|
15 |
words = spell_bee_solver['word'].iloc[i]
|
|
|
8 |
english_dict = english_dict.reset_index(drop = True)
|
9 |
english_dict = english_dict.dropna()
|
10 |
def spell_bee_solver(no_centre, centre):
|
11 |
+
full_set = set(no_centre.lower() + centre.lower())
|
12 |
+
spell_bee_solver = english_dict[english_dict['word'].str.contains(str(centre.lower()), regex = False)]
|
13 |
final_words = list()
|
14 |
for i in range(0, spell_bee_solver.shape[0]):
|
15 |
words = spell_bee_solver['word'].iloc[i]
|