Spaces:
Build error
Build error
gorkemgoknar
commited on
Commit
•
a49e413
1
Parent(s):
bb11cd8
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def greet(character,your_voice,message,history):
|
|
126 |
|
127 |
response = get_chat_response(character,history=history["message_history"],input_txt=message)
|
128 |
os.system('tts --text "'+response+'" --model_name tts_models/multilingual/multi-dataset/your_tts --speaker_wav '+your_voice+' --language_idx "en"')
|
129 |
-
|
130 |
history["message_history"].append((message, response))
|
131 |
|
132 |
#emotion = get_emotion(response)
|
@@ -137,7 +137,7 @@ def greet(character,your_voice,message,history):
|
|
137 |
html += f"<div class='resp_msg'>{character}: {resp_msg}</div>"
|
138 |
html += "</div>"
|
139 |
|
140 |
-
return html,history,
|
141 |
|
142 |
|
143 |
def greet_textonly(character,message,history):
|
|
|
126 |
|
127 |
response = get_chat_response(character,history=history["message_history"],input_txt=message)
|
128 |
os.system('tts --text "'+response+'" --model_name tts_models/multilingual/multi-dataset/your_tts --speaker_wav '+your_voice+' --language_idx "en"')
|
129 |
+
filename = "tts_output.wav"
|
130 |
history["message_history"].append((message, response))
|
131 |
|
132 |
#emotion = get_emotion(response)
|
|
|
137 |
html += f"<div class='resp_msg'>{character}: {resp_msg}</div>"
|
138 |
html += "</div>"
|
139 |
|
140 |
+
return html,history,filename
|
141 |
|
142 |
|
143 |
def greet_textonly(character,message,history):
|