rbk1990 commited on
Commit
10e238a
·
1 Parent(s): b6027f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from fastai.text.all import *
2
  import gradio as gr
3
 
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()
 
2
  import gradio as gr
3
 
4
  model = load_learner("llmf.pkl")
5
+ def txt_gen(txt, n_words=40, n_sents=2):
6
+ a = [model.predict(txt,n_words,temperature=0.9) for _ in range(n_sents)]
7
  return "\n".join(a)
8
 
9
  sents = gr.components.Textbox()