Spaces:
Running
Running
bradley6597
commited on
Commit
·
ecccfd7
1
Parent(s):
701c58e
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,10 @@ dictionary = pd.read_csv("corncob_lowercase.txt",
|
|
6 |
sep = ' ',
|
7 |
names = ['word'])
|
8 |
print(dictionary)
|
|
|
9 |
def spell_bee_solver(no_centre, centre):
|
10 |
no_centre_set = set(no_centre)
|
11 |
-
|
12 |
spell_bee_solver = dictionary
|
13 |
final_words = list()
|
14 |
for i in range(0, spell_bee_solver.shape[0]):
|
|
|
6 |
sep = ' ',
|
7 |
names = ['word'])
|
8 |
print(dictionary)
|
9 |
+
dictionary = dictionary.dropna()
|
10 |
def spell_bee_solver(no_centre, centre):
|
11 |
no_centre_set = set(no_centre)
|
12 |
+
spell_bee_solver = dictionary[dictionary['word'].str.contains(str(centre), regex = False)]
|
13 |
spell_bee_solver = dictionary
|
14 |
final_words = list()
|
15 |
for i in range(0, spell_bee_solver.shape[0]):
|