import gradio as gr from transformers import pipeline def trnslt(text): first = gr.Interface.load("Helsinki-NLP/opus-mt-tl-en") second = gr.Interface.load("Helsinki-NLP/opus-mt-en-tl") iface = gr.Series(textgen, tts) return iface iface = gr.Interface( fn=trnslt, inputs='text', outputs='text', examples=[["Magandang Umaga"],["Magandang gabi"],["Masarap ang Adobo"],["Kumusta ka na"],["Magandang umaga"]], theme="darkpeach", css=".footer{display:none !important}", ) iface.launch()