Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,5 +22,7 @@ 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"]
|
|
|
|
|
26 |
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=[['audio1.wav', 'xm_transformer_unity_hk-en'],
|
26 |
+
['audio2.wav', 'xm_transformer_unity_hk-en']])
|
27 |
+
|
28 |
demo.launch()
|