Spaces:
Runtime error
Runtime error
Added description
Browse files
app.py
CHANGED
|
@@ -20,5 +20,5 @@ def predict(text, number_of_predictions):
|
|
| 20 |
list_of_words = [i for i in list_of_words if (i in words.words()) | (i in ["?",".",","])]
|
| 21 |
return ', '.join([str(elem) for elem in list_of_words])
|
| 22 |
# return list_of_words
|
| 23 |
-
intr = gr.Interface(predict, ["text",gr.Number(value=5)], "text", live = True)
|
| 24 |
intr.launch(inline = False)
|
|
|
|
| 20 |
list_of_words = [i for i in list_of_words if (i in words.words()) | (i in ["?",".",","])]
|
| 21 |
return ', '.join([str(elem) for elem in list_of_words])
|
| 22 |
# return list_of_words
|
| 23 |
+
intr = gr.Interface(predict, ["text",gr.Number(value=5)], "text", live = True, description = "The model will automatically predict for every new input automatically. In case there is no output press space or delete an extra space so the model will compute for current input since the current output might be for when you did not completely type the word.")
|
| 24 |
intr.launch(inline = False)
|