Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,11 @@ def inference(audio, model):
|
|
22 |
|
23 |
model = gr.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_hk-en", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"])
|
24 |
audio = gr.Audio(source="microphone", type="filepath", label="Input")
|
25 |
-
demo = gr.Interface(fn=inference, inputs=[audio, model], outputs=["audio"], examples=[
|
26 |
-
['
|
|
|
|
|
|
|
|
|
27 |
|
28 |
demo.launch()
|
|
|
22 |
|
23 |
model = gr.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_hk-en", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"])
|
24 |
audio = gr.Audio(source="microphone", type="filepath", label="Input")
|
25 |
+
demo = gr.Interface(fn=inference, inputs=[audio, model], outputs=["audio"], examples=[
|
26 |
+
['audio1.wav', 'xm_transformer_unity_hk-en'],
|
27 |
+
['audio2.wav', 'xm_transformer_unity_hk-en'],
|
28 |
+
['en_audio1.wav', 'xm_transformer_unity_en-hk'],
|
29 |
+
['en_audio2.wav', 'xm_transformer_unity_en-hk']
|
30 |
+
])
|
31 |
|
32 |
demo.launch()
|