Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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"]
|