Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en")
|
|
9 |
def inference(audio, model):
|
10 |
if model == "hokkientranslator_en_hk":
|
11 |
out_audio = io1(audio)
|
12 |
-
|
13 |
-
|
14 |
return out_audio
|
15 |
|
16 |
|
@@ -128,7 +128,7 @@ with block:
|
|
128 |
btn.click(inference, inputs=[audio, model], outputs=out)
|
129 |
gr.HTML('''
|
130 |
<div class="footer">
|
131 |
-
<p>Model by <a href="mailto:[email protected]" style="text-decoration: underline;" target="_blank">JTH TEMP LINK</a>
|
132 |
</p>
|
133 |
</div>
|
134 |
''')
|
|
|
9 |
def inference(audio, model):
|
10 |
if model == "hokkientranslator_en_hk":
|
11 |
out_audio = io1(audio)
|
12 |
+
elif model == "hokkientranslator_hk_en":
|
13 |
+
out_audio = io2(audio)
|
14 |
return out_audio
|
15 |
|
16 |
|
|
|
128 |
btn.click(inference, inputs=[audio, model], outputs=out)
|
129 |
gr.HTML('''
|
130 |
<div class="footer">
|
131 |
+
<p>Model by Meta, details from <a href="mailto:[email protected]" style="text-decoration: underline;" target="_blank">JTH TEMP LINK</a>
|
132 |
</p>
|
133 |
</div>
|
134 |
''')
|