Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ import streamlit as st
|
|
6 |
|
7 |
title = "Hokkien Translation"
|
8 |
|
9 |
-
description = "Gradio Demo for fairseq
|
10 |
|
11 |
-
article = "<p style='text-align: center'><a href='https://
|
12 |
|
13 |
examples = [
|
14 |
["enhanced_direct_s2st_units_audios_es-en_set2_source_12478_cv.flac","xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022"],
|
@@ -33,7 +33,7 @@ def inference(audio, model):
|
|
33 |
|
34 |
gr.Interface(
|
35 |
inference,
|
36 |
-
[gr.inputs.Audio(source="microphone", type="filepath", label="Input"),gr.inputs.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_en-hk"], default="xm_transformer_unity_en-hk",type="value", label="Model")
|
37 |
],
|
38 |
gr.outputs.Audio(label="Output"),
|
39 |
article=article,
|
|
|
6 |
|
7 |
title = "Hokkien Translation"
|
8 |
|
9 |
+
description = "Gradio Demo for fairseq speech-to-speech translation models. We have S2UT and UnitY models for bidirectional Hokkien and English translation. Please select the model and record your input to try it."
|
10 |
|
11 |
+
article = "<p style='text-align: center'><a href='https://ai.facebook.com/blog/ai-translation-hokkien/' target='_blank'>Speech-to-speech translation for a real-world unwritten language</a> | <a href='https://github.com/facebookresearch/fairseq/tree/ust/examples/hokkien' target='_blank'>Github Repo</a></p>"
|
12 |
|
13 |
examples = [
|
14 |
["enhanced_direct_s2st_units_audios_es-en_set2_source_12478_cv.flac","xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022"],
|
|
|
33 |
|
34 |
gr.Interface(
|
35 |
inference,
|
36 |
+
[gr.inputs.Audio(source="microphone", type="filepath", label="Input"),gr.inputs.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_en-hk", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"], default="xm_transformer_unity_en-hk",type="value", label="Model")
|
37 |
],
|
38 |
gr.outputs.Audio(label="Output"),
|
39 |
article=article,
|