from transformers import pipeline repo_id = "pamunarr/mbart-traduccion" traductor = pipeline('text2text-generation', model=repo_id) gr.Interface(fn=traductor, inputs="text", outputs="text").launch(share=False)