rdlf commited on
Commit
3e96643
·
verified ·
1 Parent(s): f100609

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ pipe = pipeline("text-generation", model="somosnlp/Phi-2-LenguajeClaro", trust_r
6
  import gradio as gr
7
 
8
  def eval_text (text):
9
- return (pipe(text))
 
10
 
11
  demo = gr.Interface(fn=eval_text, inputs="text", outputs="text", title="Lenguaje Claro")
12
 
 
6
  import gradio as gr
7
 
8
  def eval_text (text):
9
+ result = pipe(text, max_length=200)
10
+ return (result[0]['generated_text'])
11
 
12
  demo = gr.Interface(fn=eval_text, inputs="text", outputs="text", title="Lenguaje Claro")
13