gorkemgoknar commited on
Commit
2ac3e56
·
1 Parent(s): cab3107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -139,8 +139,10 @@ def greet(character,your_voice,message,history):
139
  html += f"<div class='user_msg'>You: {user_msg}</div>"
140
  html += f"<div class='resp_msg'>{character}: {resp_msg}</div>"
141
  html += "</div>"
142
-
143
- return html,history,"tts_output.wav"
 
 
144
 
145
 
146
 
 
139
  html += f"<div class='user_msg'>You: {user_msg}</div>"
140
  html += f"<div class='resp_msg'>{character}: {resp_msg}</div>"
141
  html += "</div>"
142
+ if your_voice is None:
143
+ return html,history
144
+ else:
145
+ return html,history,"tts_output.wav"
146
 
147
 
148