ashimanair commited on
Commit
9f4317e
·
verified ·
1 Parent(s): 502b775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def respond(message, history):
21
  ):
22
  token = messages.choices[0].delta.content
23
  response += token
24
-
25
  #print(response["choices"][0]["message"]["content"].strip())
26
- yield response["choices"][0]["message"]["content"].strip()
27
 
28
  def random_message(message, history):
29
  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"]
 
21
  ):
22
  token = messages.choices[0].delta.content
23
  response += token
24
+ yield response
25
  #print(response["choices"][0]["message"]["content"].strip())
26
+
27
 
28
  def random_message(message, history):
29
  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"]