Spaces:
Sleeping
Sleeping
CReate a Chatbot
Browse files
app.py
CHANGED
|
@@ -81,25 +81,27 @@ def respond(message, history):
|
|
| 81 |
|
| 82 |
|
| 83 |
#EMMA'S PRACTICE EDITS#
|
| 84 |
-
url = "https://youtu.be/dQw4w9WgXcQ?si=VJRQOMzp5fdlxhfe"
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
| 94 |
"""
|
| 95 |
|
| 96 |
with gr.Blocks() as demo:
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
|
| 104 |
demo.launch(theme=gr.themes.Soft())
|
| 105 |
|
|
|
|
| 81 |
|
| 82 |
|
| 83 |
#EMMA'S PRACTICE EDITS#
|
| 84 |
+
url = "https://youtu.be/dQw4w9WgXcQ?si=VJRQOMzp5fdlxhfe"
|
| 85 |
+
|
| 86 |
+
about_text = f"""
|
| 87 |
+
<h2>About this bot</h2>
|
| 88 |
+
<p>Welcome to Mind Matters, an online resource that reminds
|
| 89 |
+
<em>you that your mind matters</em></p>
|
| 90 |
+
|
| 91 |
+
<p>Disclaimer: Mind Matters should not be used as an
|
| 92 |
+
alternative to seeking professional help. I am simply a
|
| 93 |
+
support tool.</p>
|
| 94 |
+
|
| 95 |
+
<p>Click <a href="{url}" target="_blank">Free Resources</a> to access Free Mental Health Resources.</p>
|
| 96 |
"""
|
| 97 |
|
| 98 |
with gr.Blocks() as demo:
|
| 99 |
+
with gr.Row():
|
| 100 |
+
with gr.Column(scale=1):
|
| 101 |
+
gr.HTML(about_text)
|
| 102 |
|
| 103 |
+
with gr.Column(scale=2):
|
| 104 |
+
gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 105 |
|
| 106 |
demo.launch(theme=gr.themes.Soft())
|
| 107 |
|