Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ class Chat:
|
|
| 48 |
return response_content
|
| 49 |
|
| 50 |
|
| 51 |
-
from elevenlabs import generate, play , stream
|
| 52 |
|
| 53 |
import gradio as gr
|
| 54 |
|
|
@@ -93,8 +93,9 @@ def run_text_prompt(message, chat_history):
|
|
| 93 |
voice="Antoni",
|
| 94 |
)
|
| 95 |
|
| 96 |
-
play(audio)
|
| 97 |
-
|
|
|
|
| 98 |
chat_history.append((message, bot_message))
|
| 99 |
return "", chat_history
|
| 100 |
|
|
|
|
| 48 |
return response_content
|
| 49 |
|
| 50 |
|
| 51 |
+
from elevenlabs import generate, play , stream , save
|
| 52 |
|
| 53 |
import gradio as gr
|
| 54 |
|
|
|
|
| 93 |
voice="Antoni",
|
| 94 |
)
|
| 95 |
|
| 96 |
+
# play(audio)
|
| 97 |
+
save(audio, 'myvoice.mp3')
|
| 98 |
+
|
| 99 |
chat_history.append((message, bot_message))
|
| 100 |
return "", chat_history
|
| 101 |
|