nlmaldonadog commited on
Commit
fc73c91
1 Parent(s): 739cdf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Cargar el modelo
5
- model = pipeline('sec2sec', model='nlmaldonadog/mbart-clarification-P8')
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']