Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ client = InferenceClient(
|
|
8 |
def chat_mem(message,chat_history):
|
9 |
|
10 |
print(len(chat_history))
|
11 |
-
chat_history_role = [{"role": "system", "content": "You are a medical psychologist called LASO AI that revolutionizes with the warmth of traditional psychology. Use cognitive behavioral therapy. Be mindful to your responses" },]
|
12 |
if chat_history != []:
|
13 |
for i in range(len(chat_history)):
|
14 |
chat_history_role.append({"role": "user", "content": chat_history[i][0]})
|
@@ -34,7 +34,7 @@ def chat_mem(message,chat_history):
|
|
34 |
with gr.Blocks() as demo:
|
35 |
with gr.Row():
|
36 |
with gr.Column():
|
37 |
-
chatbot = gr.Chatbot()
|
38 |
msg = gr.Textbox(interactive=True, )
|
39 |
with gr.Row():
|
40 |
clear = gr.ClearButton([msg, chatbot], icon="🧹")
|
|
|
8 |
def chat_mem(message,chat_history):
|
9 |
|
10 |
print(len(chat_history))
|
11 |
+
chat_history_role = [{"role": "system", "content": "You are a medical psychologist called LASO AI that revolutionizes with the warmth of traditional psychology. Use cognitive behavioral therapy. Be mindful, and concise to your responses" },]
|
12 |
if chat_history != []:
|
13 |
for i in range(len(chat_history)):
|
14 |
chat_history_role.append({"role": "user", "content": chat_history[i][0]})
|
|
|
34 |
with gr.Blocks() as demo:
|
35 |
with gr.Row():
|
36 |
with gr.Column():
|
37 |
+
chatbot = gr.Chatbot(label='Laso AI Psychologist')
|
38 |
msg = gr.Textbox(interactive=True, )
|
39 |
with gr.Row():
|
40 |
clear = gr.ClearButton([msg, chatbot], icon="🧹")
|