Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def get_top_chunks(query):
|
|
| 53 |
|
| 54 |
|
| 55 |
def respond(message, history):
|
| 56 |
-
messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image.
|
| 57 |
# change the personality
|
| 58 |
context = get_top_chunks(message)
|
| 59 |
|
|
@@ -67,7 +67,7 @@ def respond(message, history):
|
|
| 67 |
response = ""
|
| 68 |
for messages in client.chat_completion(
|
| 69 |
messages,
|
| 70 |
-
max_tokens =
|
| 71 |
stream = True,
|
| 72 |
):
|
| 73 |
token = messages.choices[0].delta.content
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
def respond(message, history):
|
| 56 |
+
messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image."}]
|
| 57 |
# change the personality
|
| 58 |
context = get_top_chunks(message)
|
| 59 |
|
|
|
|
| 67 |
response = ""
|
| 68 |
for messages in client.chat_completion(
|
| 69 |
messages,
|
| 70 |
+
max_tokens = 300,
|
| 71 |
stream = True,
|
| 72 |
):
|
| 73 |
token = messages.choices[0].delta.content
|