Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
|
5 |
|
6 |
io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_en-hk")
|
7 |
-
|
8 |
|
9 |
def inference(audio, model):
|
10 |
if model == "hokkientranslator_en_hk":
|
@@ -122,13 +122,13 @@ with block:
|
|
122 |
)
|
123 |
|
124 |
btn = gr.Button("Submit")
|
125 |
-
model = gr.Dropdown(choices=["hokkientranslator_en_hk"], value="hokkientranslator_en_hk",type="value", label="Model")
|
126 |
out = gr.Audio(label="Output")
|
127 |
|
128 |
btn.click(inference, inputs=[audio, model], outputs=out)
|
129 |
gr.HTML('''
|
130 |
<div class="footer">
|
131 |
-
<p>Model by <a href="
|
132 |
</p>
|
133 |
</div>
|
134 |
''')
|
|
|
4 |
|
5 |
|
6 |
io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_en-hk")
|
7 |
+
io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en")
|
8 |
|
9 |
def inference(audio, model):
|
10 |
if model == "hokkientranslator_en_hk":
|
|
|
122 |
)
|
123 |
|
124 |
btn = gr.Button("Submit")
|
125 |
+
model = gr.Dropdown(choices=["hokkientranslator_en_hk", "huggingface/facebook/xm_transformer_s2ut_hk-en"], value="hokkientranslator_en_hk",type="value", label="Model")
|
126 |
out = gr.Audio(label="Output")
|
127 |
|
128 |
btn.click(inference, inputs=[audio, model], outputs=out)
|
129 |
gr.HTML('''
|
130 |
<div class="footer">
|
131 |
+
<p>Model by <a href="mailto:jthteo@gmail.com" style="text-decoration: underline;" target="_blank">JTH TEMP LINK</a>
|
132 |
</p>
|
133 |
</div>
|
134 |
''')
|