radames commited on
Commit
0ecbdf8
·
1 Parent(s): 6e13ec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ speller = enchant.Dict("en_US")
7
 
8
 
9
  def predict(text):
10
- return [speller.suggest(text)]
 
11
 
12
  with block:
13
  text_input = gr.Text()
 
7
 
8
 
9
  def predict(text):
10
+ spells = speller.suggest(text)
11
+ return [[s] for s in spells]
12
 
13
  with block:
14
  text_input = gr.Text()