bradley6597 commited on
Commit
54922b6
·
1 Parent(s): 350681e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -20,6 +20,10 @@ def spell_bee_solver(no_centre, centre):
20
  final_words.append(words)
21
 
22
  final_word_df = pd.DataFrame(final_words)
 
 
 
 
23
  return(final_word_df)
24
 
25
  with gr.Blocks() as app:
 
20
  final_words.append(words)
21
 
22
  final_word_df = pd.DataFrame(final_words)
23
+ final_word_df.columns = ['word']
24
+ final_word_df['word_length'] = final_word_df['word'].str.len()
25
+ final_word_df = final_word_df[final_word_df['word_length'] > 3]
26
+ final_word_df = final_word_df.sort_value('word_length', ascending = False)
27
  return(final_word_df)
28
 
29
  with gr.Blocks() as app: