rbk1990 commited on
Commit
40a936c
1 Parent(s): 10e238a

Update app.py

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