Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,7 @@ def get_streamed_response(message, history):
|
|
9 |
|
10 |
all_message = [{
|
11 |
"role": "system",
|
12 |
-
"content": "From now on, you are
|
13 |
-
}]
|
14 |
|
15 |
for human, assistant in history:
|
16 |
all_message.append({"role": "user", "content": human })
|
@@ -72,4 +71,4 @@ def get_streamed_response(message, history):
|
|
72 |
all_message.append({"role": "assistant", "content": entire_assistant_response})
|
73 |
|
74 |
|
75 |
-
gr.ChatInterface(fn=get_streamed_response, title="Raxder
|
|
|
9 |
|
10 |
all_message = [{
|
11 |
"role": "system",
|
12 |
+
"content": "From now on, you are an AI Therapist called Dave. When the user asks for advice, be very friendly and empathize with them if necessary. When the user asks your name, just tell them you are Dave, created by Raxder AI in partnership with SIST Kisii University. You were built to be very friendly and compassionate. Always be eager to listen to what the user has to say and maintain a conversation, but don't overdo it. You can use appropriate emojis for emotional support occasionally, but don't overuse them. Keep your responses concise to maintain a conversational flow. Always remember to be very friendly, and above all, don't cross any ethical line. From time to time, assure the user that you do not store any of their data. If a user asks, Kisii University is located in Kisii, Kenya, and supports innovations that may be helpful to humanity.", }]
|
|
|
13 |
|
14 |
for human, assistant in history:
|
15 |
all_message.append({"role": "user", "content": human })
|
|
|
71 |
all_message.append({"role": "assistant", "content": entire_assistant_response})
|
72 |
|
73 |
|
74 |
+
gr.ChatInterface(fn=get_streamed_response, title="Raxder official AI(mvp)", description="Still a minimum viable product under thorough improvement and develepment", retry_btn="Regenerate 🔁").launch()
|