Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
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 |
|