Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ pipe = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
|
|
| 15 |
def call_model(audio, model):
|
| 16 |
# pipe = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
|
| 17 |
wav, sr, text = pipe(audio)
|
| 18 |
-
return gr.Audio(sr, wav)
|
| 19 |
|
| 20 |
def inference(audio, model):
|
| 21 |
if model == "xm_transformer_s2ut_en-hk":
|
|
|
|
| 15 |
def call_model(audio, model):
|
| 16 |
# pipe = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
|
| 17 |
wav, sr, text = pipe(audio)
|
| 18 |
+
return gr.Audio((sr, wav))
|
| 19 |
|
| 20 |
def inference(audio, model):
|
| 21 |
if model == "xm_transformer_s2ut_en-hk":
|