Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
model = load_learner("llmf.pkl")
|
| 5 |
def txt_gen(txt, n_words=20, n_sents=2):
|
| 6 |
a = [model.predict(txt,n_words,temperature=0.80) for _ in range(n_sents)]
|
| 7 |
-
return "".join(a)
|
| 8 |
|
| 9 |
sents = gr.components.Textbox()
|
| 10 |
outs = gr.components.Textbox()
|
|
|
|
| 4 |
model = load_learner("llmf.pkl")
|
| 5 |
def txt_gen(txt, n_words=20, n_sents=2):
|
| 6 |
a = [model.predict(txt,n_words,temperature=0.80) for _ in range(n_sents)]
|
| 7 |
+
return "\n".join(a)
|
| 8 |
|
| 9 |
sents = gr.components.Textbox()
|
| 10 |
outs = gr.components.Textbox()
|