hktoeng / app.py
reallynicejam's picture
Update app.py
4950079 verified
raw
history blame contribute delete
363 Bytes
# import gradio as gr
# gr.load("models/facebook/xm_transformer_s2ut_hk-en").launch()
import gradio as gr
from transformers import pipeline
pipe = pipeline("translation", model="facebook/xm_transformer_s2ut_hk-en")
demo = gr.Interface(
gr.load("models/facebook/xm_transformer_s2ut_hk-en"),
inputs='audio',
outputs='audio',
live=True,
)
demo.launch()