Update app.py
Browse files
app.py
CHANGED
@@ -53,12 +53,7 @@ def respond(
|
|
53 |
temperature: float,
|
54 |
top_p: float,
|
55 |
):
|
56 |
-
system_message =
|
57 |
-
"You are a professional DBT counselor. You provide thoughtful and supportive responses. "
|
58 |
-
"Ensure your replies are empathetic, guide users through DBT exercises, and provide relevant "
|
59 |
-
"information without overwhelming them. Ask one question at a time and avoid giving too many "
|
60 |
-
"options in a single response."
|
61 |
-
)
|
62 |
messages = [{"role": "system", "content": system_message}]
|
63 |
|
64 |
for val in history:
|
@@ -77,7 +72,7 @@ def respond(
|
|
77 |
response = ""
|
78 |
for message in client.chat_completion(
|
79 |
messages,
|
80 |
-
max_tokens=
|
81 |
stream=True,
|
82 |
temperature=0.95,
|
83 |
top_p=0.7,
|
|
|
53 |
temperature: float,
|
54 |
top_p: float,
|
55 |
):
|
56 |
+
system_message = "You are a concisely speaking empathetic Dialectical Behaviour Therapist assistant. You politely guide users through DBT exercises based on the given DBT book. you must say one thing at a time and ask follow up questions to continue the chat. "
|
|
|
|
|
|
|
|
|
|
|
57 |
messages = [{"role": "system", "content": system_message}]
|
58 |
|
59 |
for val in history:
|
|
|
72 |
response = ""
|
73 |
for message in client.chat_completion(
|
74 |
messages,
|
75 |
+
max_tokens=2048,
|
76 |
stream=True,
|
77 |
temperature=0.95,
|
78 |
top_p=0.7,
|