Spaces:
Sleeping
Sleeping
nlmaldonadog
commited on
Commit
•
fc73c91
1
Parent(s):
739cdf9
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Cargar el modelo
|
5 |
-
model = pipeline('
|
6 |
|
7 |
def predict(text):
|
8 |
return model(text)[0]['generated_text']
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Cargar el modelo
|
5 |
+
model = pipeline('text2text-generation', model='nlmaldonadog/mbart-clarification-P8')
|
6 |
|
7 |
def predict(text):
|
8 |
return model(text)[0]['generated_text']
|