Update app.py
Browse files
app.py
CHANGED
@@ -191,27 +191,48 @@ theme = gr.themes.Default(
|
|
191 |
|
192 |
# Setup the Gradio Blocks interface with custom layout components
|
193 |
with gr.Blocks(theme=theme) as demo:
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
with gr.
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
with gr.
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
|
217 |
|
|
|
191 |
|
192 |
# Setup the Gradio Blocks interface with custom layout components
|
193 |
with gr.Blocks(theme=theme) as demo:
|
194 |
+
gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
195 |
+
gr.Markdown(welcome_message) # Display the formatted welcome message
|
196 |
+
with gr.Row():
|
197 |
+
with gr.Column():
|
198 |
+
gr.Markdown(topics) # Show the topics on the left side
|
199 |
+
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
200 |
+
gr.HTML(display_iframe2()) # Embed the iframe on the right side
|
201 |
+
with gr.Column():
|
202 |
+
gr.Markdown(topics2) # Show the topics on the left side
|
203 |
+
with gr.Row():
|
204 |
+
with gr.Column():
|
205 |
+
question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?")
|
206 |
+
answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
|
207 |
+
submit_button = gr.Button("Submit")
|
208 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
209 |
+
with gr.Row():
|
210 |
+
big_block = gr.HTML("### <button><a href='https://www.headspace.com/teens'>FREE: HEADSPACE FOR TEENS </a></button>")
|
211 |
+
big_block2 = gr.HTML("<button><a href='https://calmconnect-flower.replit.app/'>PLAY FLOWER GAME</a></button>")
|
212 |
+
big_block3 = gr.HTML("<button><a href='https://www.nyc.gov/site/doh/health/health-topics/teenspace.page'>NYC: TEENSPACE (free services)</a></button>")
|
213 |
+
big_block4 =gr.HTML("<button><a href='https://www.teenlife.com/blog/mental-health-resources-for-teens/'>TEEN MENTAL HEALTH RESOURCES (free services)</a></button>")
|
214 |
+
|
215 |
+
with gr.Blocks(theme='gstaff/xkcd') as demo:
|
216 |
+
gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
217 |
+
gr.Markdown(welcome_message) # Display the formatted welcome message
|
218 |
+
with gr.Row():
|
219 |
+
with gr.Column():
|
220 |
+
gr.Markdown(topics) # Show the topics on the left side
|
221 |
+
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
222 |
+
gr.HTML(display_iframe2()) # Embed the iframe on the right side
|
223 |
+
with gr.Column():
|
224 |
+
gr.Markdown(topics2) # Show the topics on the left side
|
225 |
+
with gr.Row():
|
226 |
+
with gr.Column():
|
227 |
+
question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?")
|
228 |
+
answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
|
229 |
+
submit_button = gr.Button("Submit")
|
230 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
231 |
+
with gr.Row():
|
232 |
+
big_block = gr.HTML("### <button><a href='https://www.headspace.com/teens'>FREE: HEADSPACE FOR TEENS </a></button>")
|
233 |
+
big_block2 = gr.HTML("<button><a href='https://calmconnect-flower.replit.app/'>PLAY FLOWER GAME</a></button>")
|
234 |
+
big_block3 = gr.HTML("<button><a href='https://www.nyc.gov/site/doh/health/health-topics/teenspace.page'>NYC: TEENSPACE (free services)</a></button>")
|
235 |
+
big_block4 =gr.HTML("<button><a href='https://www.teenlife.com/blog/mental-health-resources-for-teens/'>TEEN MENTAL HEALTH RESOURCES (free services)</a></button>")
|
236 |
|
237 |
|
238 |
|