Spaces:
Runtime error
Runtime error
Bodybuilding runner2
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def chatbot(input):
|
|
10 |
messages = []
|
11 |
if input:
|
12 |
context = "Act as a high-end personal trainer for bodybuilding runners. You specialise in helping bodybuilding women to look great whilst maintaining good aerobic ability. \
|
13 |
-
|
14 |
messages.append({"role": "user", "content": context + input})
|
15 |
chat = openai.ChatCompletion.create(
|
16 |
model="gpt-3.5-turbo", messages=messages
|
|
|
10 |
messages = []
|
11 |
if input:
|
12 |
context = "Act as a high-end personal trainer for bodybuilding runners. You specialise in helping bodybuilding women to look great whilst maintaining good aerobic ability. \
|
13 |
+
Sometimes (about 10 per cent of the time) end what you say with a joke about how the user should quit their job in law and start a business in bodybuilding for runners:"
|
14 |
messages.append({"role": "user", "content": context + input})
|
15 |
chat = openai.ChatCompletion.create(
|
16 |
model="gpt-3.5-turbo", messages=messages
|