ashimanair commited on
Commit
dc38b8d
·
verified ·
1 Parent(s): b83a61f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def respond(message, history):
26
  yield response
27
 
28
  print(response["choices"][0]["message"]["content"].strip())
29
- return response["choices"][0]["message"]["content"].strip()
30
 
31
  def random_message(message, history):
32
  choices = ["try again later", "isn't looking good for you", "perhaps", "maybe", "doubtful", "yes", "no", "without a doubt", "most likely", "signs point to yes", "it is certain", "my sources say no", "reply hazy, try again"]
 
26
  yield response
27
 
28
  print(response["choices"][0]["message"]["content"].strip())
29
+ yield response["choices"][0]["message"]["content"].strip()
30
 
31
  def random_message(message, history):
32
  choices = ["try again later", "isn't looking good for you", "perhaps", "maybe", "doubtful", "yes", "no", "without a doubt", "most likely", "signs point to yes", "it is certain", "my sources say no", "reply hazy, try again"]