bradley6597 commited on
Commit
c0ab3ed
1 Parent(s): 177665a

Changed naming and added column names

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import pandas as pd
3
 
4
- english_dict = pd.read_csv("corncob_lowercase.txt",
5
  header = None,
6
  sep = ' ',
7
  names = ['word'])
@@ -31,7 +31,7 @@ with gr.Blocks() as app:
31
  with gr.Row():
32
  solve_button = gr.Button(value = 'Solve')
33
  with gr.Row():
34
- output_df = gr.DataFrame()
35
  solve_button.click(spell_bee_solver, inputs = [no_centre, centre], outputs = [output_df])
36
 
37
  app.launch(debug = True, share = False)
 
1
  import gradio as gr
2
  import pandas as pd
3
 
4
+ english_dict = pd.read_csv("dictionary.txt",
5
  header = None,
6
  sep = ' ',
7
  names = ['word'])
 
31
  with gr.Row():
32
  solve_button = gr.Button(value = 'Solve')
33
  with gr.Row():
34
+ output_df = gr.DataFrame(headers = ['word', 'word_length'])
35
  solve_button.click(spell_bee_solver, inputs = [no_centre, centre], outputs = [output_df])
36
 
37
  app.launch(debug = True, share = False)