Spaces:
Runtime error
Runtime error
# 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() |