english2german / app.py
Abubakar Abid
Update app.py
251de26
raw
history blame
238 Bytes
import gradio as gr
translator = gr.Interface.load("huggingface/t5-base")
def both(x):
return x, translator(x)
gr.Interface(both, "text", ["text", "text"], title="Translate text from English to German using HF APIs!").launch()