islasher commited on
Commit
f1fdfd7
1 Parent(s): 7756fe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,13 +81,13 @@ neutralizer = pipeline('text2text-generation', model='islasher/mbart-spanishToQu
81
 
82
 
83
 
84
- def predict(frase):
85
  # inputs = tokenizer(frase, return_tensors="pt")
86
  # outputs = model(**inputs)
87
  # trad = tokenizer.decode(outputs[0], skip_special_tokens=True)
88
- return neutralizer()
89
 
90
  # Creamos la interfaz y la lanzamos.
91
  #gr.Interface(fn=neutralizer, inputs="text", outputs="text").launch(share=False)
92
  # Creamos la interfaz y la lanzamos.
93
- gr.Interface(fn=predict, inputs="text", outputs="text").launch(share=False)
 
81
 
82
 
83
 
84
+ #def predict(frase):
85
  # inputs = tokenizer(frase, return_tensors="pt")
86
  # outputs = model(**inputs)
87
  # trad = tokenizer.decode(outputs[0], skip_special_tokens=True)
88
+ #return neutralizer
89
 
90
  # Creamos la interfaz y la lanzamos.
91
  #gr.Interface(fn=neutralizer, inputs="text", outputs="text").launch(share=False)
92
  # Creamos la interfaz y la lanzamos.
93
+ gr.Interface(fn=neutralizer, inputs="text", outputs="text").launch(share=False)