Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ politely inform them that you are tuned to only answer questions about mental he
|
|
23 |
# history.append((inp, output))
|
24 |
# return history
|
25 |
|
26 |
-
with gr.Blocks(theme=gr.themes.
|
27 |
|
28 |
gr.HTML("<center><h2>Omdena AI Chatbot For Mental Health and Wellbeing</h2></center>")
|
29 |
|
@@ -45,12 +45,14 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
45 |
send = gr.Button(value="Send").style(full_width=False)
|
46 |
clear = gr.Button(value="Clear Chat").style(full_width=False)
|
47 |
|
48 |
-
|
|
|
49 |
["I feel lonely"],
|
50 |
["I'm having problems at home"],
|
51 |
["I am looking for some resources"],
|
52 |
]
|
53 |
-
|
|
|
54 |
send.click(respond, [message, chatbot], [message, chatbot])
|
55 |
clear.click(lambda: None, None, chatbot, queue=False)
|
56 |
|
|
|
23 |
# history.append((inp, output))
|
24 |
# return history
|
25 |
|
26 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
27 |
|
28 |
gr.HTML("<center><h2>Omdena AI Chatbot For Mental Health and Wellbeing</h2></center>")
|
29 |
|
|
|
45 |
send = gr.Button(value="Send").style(full_width=False)
|
46 |
clear = gr.Button(value="Clear Chat").style(full_width=False)
|
47 |
|
48 |
+
gr.Examples(
|
49 |
+
examples=[
|
50 |
["I feel lonely"],
|
51 |
["I'm having problems at home"],
|
52 |
["I am looking for some resources"],
|
53 |
]
|
54 |
+
)
|
55 |
+
|
56 |
send.click(respond, [message, chatbot], [message, chatbot])
|
57 |
clear.click(lambda: None, None, chatbot, queue=False)
|
58 |
|