Jade-MH commited on
Commit
ac63737
·
verified ·
1 Parent(s): 50a7c7e

CReate a Chatbot

Browse files
Files changed (1) hide show
  1. app.py +17 -15
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
- about_text = f"""
86
- ## About this bot
87
- Welcome to Mind Matters, an online resource that reminds
88
- *you that your mind matters*
89
-
90
- Disclaimer; Mind Matters should not be used as an
91
- alternative to seeking professional help. I am simply a
92
- support tool.
93
- Click [Free Resources]({url}) to access Free Mental Resources.
 
 
94
  """
95
 
96
  with gr.Blocks() as demo:
97
- with gr.Row():
98
- with gr.Column(scale=1):
99
- gr.Markdown(about_text)
100
 
101
- with gr.Column(scale=2):
102
- gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
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