Spaces:
Runtime error
Runtime error
File size: 506 Bytes
1c0dfed c900125 1c0dfed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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-ceb")
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() |