gorkemgoknar commited on
Commit
28a163b
1 Parent(s): a49e413

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- filename = "tts_output.wav"
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,filename
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
+
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,"tts_output.wav"
141
 
142
 
143
  def greet_textonly(character,message,history):