Update app.py
Browse files
app.py
CHANGED
|
@@ -172,25 +172,6 @@ def display_iframe():
|
|
| 172 |
def display_iframe2():
|
| 173 |
return iframe2
|
| 174 |
|
| 175 |
-
custom_css = """
|
| 176 |
-
<style>
|
| 177 |
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
|
| 178 |
-
|
| 179 |
-
body {
|
| 180 |
-
font-family: 'Inter', sans-serif;
|
| 181 |
-
}
|
| 182 |
-
|
| 183 |
-
.gr-chat-message {
|
| 184 |
-
background-color: #e3e9da
|
| 185 |
-
color: #e3e9da
|
| 186 |
-
}
|
| 187 |
-
|
| 188 |
-
button a {
|
| 189 |
-
text-decoration: none;
|
| 190 |
-
color: white;
|
| 191 |
-
}
|
| 192 |
-
</style>
|
| 193 |
-
"""
|
| 194 |
|
| 195 |
theme = gr.themes.Default(
|
| 196 |
primary_hue="neutral",
|
|
@@ -211,14 +192,15 @@ theme = gr.themes.Default(
|
|
| 211 |
|
| 212 |
# Setup the Gradio Blocks interface with custom layout components
|
| 213 |
with gr.Blocks(theme=theme) as demo:
|
| 214 |
-
gr.
|
| 215 |
-
gr.Image("CalmConnect.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
| 216 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
|
|
|
| 217 |
with gr.Row():
|
| 218 |
with gr.Column():
|
| 219 |
gr.Markdown(topics) # Show the topics on the left side
|
| 220 |
-
gr.HTML(
|
| 221 |
-
gr.HTML(
|
|
|
|
| 222 |
with gr.Column():
|
| 223 |
gr.Markdown(topics2) # Show the topics on the left side
|
| 224 |
with gr.Row():
|
|
@@ -227,6 +209,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 227 |
answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
|
| 228 |
submit_button = gr.Button("Submit")
|
| 229 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
|
|
|
| 230 |
with gr.Row():
|
| 231 |
big_block = gr.HTML("### <button><a href='https://www.headspace.com/teens'>FREE: HEADSPACE FOR TEENS </a></button>")
|
| 232 |
big_block2 = gr.HTML("<button><a href='https://calmconnect-flower.replit.app/'>PLAY FLOWER GAME</a></button>")
|
|
|
|
| 172 |
def display_iframe2():
|
| 173 |
return iframe2
|
| 174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
|
| 176 |
theme = gr.themes.Default(
|
| 177 |
primary_hue="neutral",
|
|
|
|
| 192 |
|
| 193 |
# Setup the Gradio Blocks interface with custom layout components
|
| 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 |
+
|
| 198 |
with gr.Row():
|
| 199 |
with gr.Column():
|
| 200 |
gr.Markdown(topics) # Show the topics on the left side
|
| 201 |
+
gr.HTML(iframe) # Embed the iframe on the left side
|
| 202 |
+
gr.HTML(iframe2) # Embed the iframe on the right side
|
| 203 |
+
|
| 204 |
with gr.Column():
|
| 205 |
gr.Markdown(topics2) # Show the topics on the left side
|
| 206 |
with gr.Row():
|
|
|
|
| 209 |
answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
|
| 210 |
submit_button = gr.Button("Submit")
|
| 211 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 212 |
+
|
| 213 |
with gr.Row():
|
| 214 |
big_block = gr.HTML("### <button><a href='https://www.headspace.com/teens'>FREE: HEADSPACE FOR TEENS </a></button>")
|
| 215 |
big_block2 = gr.HTML("<button><a href='https://calmconnect-flower.replit.app/'>PLAY FLOWER GAME</a></button>")
|