allyyy commited on
Commit
a53c668
·
verified ·
1 Parent(s): 68186fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -191,27 +191,27 @@ theme = gr.themes.Default(
191
 
192
  # Setup the Gradio Blocks interface with custom layout components
193
  with gr.Blocks(theme='gstaff/xkcd') as demo:
194
- with gr.Blocks(theme=theme) as demo:
195
- gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
196
- gr.Markdown(welcome_message) # Display the formatted welcome message
197
- with gr.Row():
198
- with gr.Column():
199
- gr.Markdown(topics) # Show the topics on the left side
200
- gr.HTML(display_iframe()) # Embed the iframe on the left side
201
- gr.HTML(display_iframe2()) # Embed the iframe on the right side
202
- with gr.Column():
203
- gr.Markdown(topics2) # Show the topics on the left side
204
- with gr.Row():
205
- with gr.Column():
206
- question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?")
207
- answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
208
- submit_button = gr.Button("Submit")
209
- submit_button.click(fn=query_model, inputs=question, outputs=answer)
210
- with gr.Row():
211
- big_block = gr.HTML("### <button><a href='https://www.headspace.com/teens'>FREE: HEADSPACE FOR TEENS </a></button>")
212
- big_block2 = gr.HTML("<button><a href='https://calmconnect-flower.replit.app/'>PLAY FLOWER GAME</a></button>")
213
- big_block3 = gr.HTML("<button><a href='https://www.nyc.gov/site/doh/health/health-topics/teenspace.page'>NYC: TEENSPACE (free services)</a></button>")
214
- 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>")
215
 
216
 
217
 
 
191
 
192
  # Setup the Gradio Blocks interface with custom layout components
193
  with gr.Blocks(theme='gstaff/xkcd') as demo:
194
+ with gr.Blocks(theme=theme) as demo:
195
+ gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
196
+ gr.Markdown(welcome_message) # Display the formatted welcome message
197
+ with gr.Row():
198
+ with gr.Column():
199
+ gr.Markdown(topics) # Show the topics on the left side
200
+ gr.HTML(display_iframe()) # Embed the iframe on the left side
201
+ gr.HTML(display_iframe2()) # Embed the iframe on the right side
202
+ with gr.Column():
203
+ gr.Markdown(topics2) # Show the topics on the left side
204
+ with gr.Row():
205
+ with gr.Column():
206
+ question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?")
207
+ answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
208
+ submit_button = gr.Button("Submit")
209
+ submit_button.click(fn=query_model, inputs=question, outputs=answer)
210
+ with gr.Row():
211
+ big_block = gr.HTML("### <button><a href='https://www.headspace.com/teens'>FREE: HEADSPACE FOR TEENS </a></button>")
212
+ big_block2 = gr.HTML("<button><a href='https://calmconnect-flower.replit.app/'>PLAY FLOWER GAME</a></button>")
213
+ big_block3 = gr.HTML("<button><a href='https://www.nyc.gov/site/doh/health/health-topics/teenspace.page'>NYC: TEENSPACE (free services)</a></button>")
214
+ 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>")
215
 
216
 
217