Chan55 commited on
Commit
668de9a
Β·
1 Parent(s): 2c4c37b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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