Spaces:
Runtime error
Runtime error
aleegr10
commited on
Commit
·
3d39e44
1
Parent(s):
ab4c2a6
update
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def modelo3En(text):
|
|
| 49 |
|
| 50 |
speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
|
| 51 |
|
| 52 |
-
return (16000, speech.cpu().numpy())
|
| 53 |
|
| 54 |
|
| 55 |
def modelo3Es(text):
|
|
@@ -64,7 +64,7 @@ def modelo3Es(text):
|
|
| 64 |
|
| 65 |
speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
|
| 66 |
|
| 67 |
-
return (16000, speech.cpu().numpy())
|
| 68 |
|
| 69 |
|
| 70 |
def executionIMG(image, lan):
|
|
|
|
| 49 |
|
| 50 |
speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
|
| 51 |
|
| 52 |
+
return gr.Audio.update(value=(16000, speech.cpu().numpy()))
|
| 53 |
|
| 54 |
|
| 55 |
def modelo3Es(text):
|
|
|
|
| 64 |
|
| 65 |
speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
|
| 66 |
|
| 67 |
+
return gr.Audio.update(value=(16000, speech.cpu().numpy()))
|
| 68 |
|
| 69 |
|
| 70 |
def executionIMG(image, lan):
|