Spaces:
Runtime error
Runtime error
truy
Browse files
app.py
CHANGED
|
@@ -18,11 +18,11 @@ def respond(message, history):
|
|
| 18 |
# temperature = 0.8
|
| 19 |
# top_p = 0.65
|
| 20 |
token = messages.choices[0].delta.content
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
print(response ["choices"][0]["message"]["content"].strip())
|
| 24 |
|
| 25 |
-
return response ["choices"][0]["message"]["content"].strip()
|
| 26 |
|
| 27 |
def random_message(message, history):
|
| 28 |
choices = ["you have 24 hours", "yay ur lucky or whateva", "do not step outside", "try again", "pop quiz days be like", "please tell me you're not asking about a man.", "my sources tell me no", "haha you thought", "Im like 90.9% sure your being watched"]
|
|
|
|
| 18 |
# temperature = 0.8
|
| 19 |
# top_p = 0.65
|
| 20 |
token = messages.choices[0].delta.content
|
| 21 |
+
response += token
|
| 22 |
+
yield response
|
| 23 |
|
| 24 |
print(response ["choices"][0]["message"]["content"].strip())
|
| 25 |
|
|
|
|
| 26 |
|
| 27 |
def random_message(message, history):
|
| 28 |
choices = ["you have 24 hours", "yay ur lucky or whateva", "do not step outside", "try again", "pop quiz days be like", "please tell me you're not asking about a man.", "my sources tell me no", "haha you thought", "Im like 90.9% sure your being watched"]
|