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