Update app.py
Browse files
app.py
CHANGED
|
@@ -88,16 +88,14 @@ demo = gr.ChatInterface(
|
|
| 88 |
show_label=False,
|
| 89 |
show_share_button=False,
|
| 90 |
show_copy_button=True,
|
| 91 |
-
layout="panel"
|
|
|
|
| 92 |
),
|
| 93 |
additional_inputs=additional_inputs,
|
| 94 |
title="PsyAssist - ADVANCING MENTAL HEALTH SUPPORT WITH AI-DRIVEN INTERACTION",
|
| 95 |
description="""This is an AI-powered mental health support chatbot. While it can provide emotional support and general guidance,
|
| 96 |
it is not a replacement for professional mental health services. In case of emergency, please contact your local mental health crisis hotline.""",
|
| 97 |
examples=examples,
|
| 98 |
-
retry_btn="Retry",
|
| 99 |
-
undo_btn="Undo",
|
| 100 |
-
clear_btn="Clear",
|
| 101 |
concurrency_limit=20,
|
| 102 |
)
|
| 103 |
|
|
|
|
| 88 |
show_label=False,
|
| 89 |
show_share_button=False,
|
| 90 |
show_copy_button=True,
|
| 91 |
+
layout="panel",
|
| 92 |
+
type="messages" # Updated to use the new message format
|
| 93 |
),
|
| 94 |
additional_inputs=additional_inputs,
|
| 95 |
title="PsyAssist - ADVANCING MENTAL HEALTH SUPPORT WITH AI-DRIVEN INTERACTION",
|
| 96 |
description="""This is an AI-powered mental health support chatbot. While it can provide emotional support and general guidance,
|
| 97 |
it is not a replacement for professional mental health services. In case of emergency, please contact your local mental health crisis hotline.""",
|
| 98 |
examples=examples,
|
|
|
|
|
|
|
|
|
|
| 99 |
concurrency_limit=20,
|
| 100 |
)
|
| 101 |
|