Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,9 @@ 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 |
-
temp_file = pipe(audio)
|
| 19 |
-
return gr.Audio(temp_file)
|
|
|
|
| 20 |
|
| 21 |
def inference(audio, model):
|
| 22 |
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 |
+
# temp_file = pipe(audio)
|
| 19 |
+
# return gr.Audio(temp_file)
|
| 20 |
+
return pipe(audio)
|
| 21 |
|
| 22 |
def inference(audio, model):
|
| 23 |
if model == "xm_transformer_s2ut_en-hk":
|