gorkemgoknar commited on
Commit
67d1ec0
1 Parent(s): 335a5a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -196,6 +196,8 @@ def get_answer_from_response(text,character):
196
  response= response.split(":")[0]
197
  if response.startswith('"'):
198
  response= response[1:]
 
 
199
  return response
200
 
201
  def run_chatter(num_repeat=2, character="kirk",human_character="Mr. Sulu",context="Captain Kirk from U.S.S. Enterprise",
 
196
  response= response.split(":")[0]
197
  if response.startswith('"'):
198
  response= response[1:]
199
+ if response=="" or response=="...":
200
+ response="Hmm."
201
  return response
202
 
203
  def run_chatter(num_repeat=2, character="kirk",human_character="Mr. Sulu",context="Captain Kirk from U.S.S. Enterprise",