Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,8 @@ speller = enchant.Dict("en_US")
|
|
| 7 |
|
| 8 |
|
| 9 |
def predict(text):
|
| 10 |
-
|
|
|
|
| 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()
|