Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files
app.py
CHANGED
|
@@ -339,7 +339,6 @@ emotions = {
|
|
| 339 |
"mind storm" : "Sit quietly and focus on one thought.",
|
| 340 |
"mental struggle" : "Write a small gratitude note.",
|
| 341 |
"mind fatigue" : "Do light stretches or walk for 5 minutes."
|
| 342 |
-
|
| 343 |
}
|
| 344 |
|
| 345 |
# Functions
|
|
@@ -402,48 +401,41 @@ with gr.Blocks() as app:
|
|
| 402 |
welcome_screen = gr.Column(visible=True)
|
| 403 |
full_app = gr.Tabs(visible=False)
|
| 404 |
|
| 405 |
-
with welcome_screen:
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
}
|
| 441 |
-
</style>
|
| 442 |
-
""")
|
| 443 |
-
gr.Markdown("<h1 id='main-title'>StrongMind Therapist 2.0</h1>")
|
| 444 |
-
gr.Markdown("<h3 id='subtitle'>Your peaceful space to talk, journal, and focus.</h3>")
|
| 445 |
-
start_button = gr.Button("🌸 Get Started", elem_id="start-btn")
|
| 446 |
-
|
| 447 |
return gr.update(visible=False), gr.update(visible=True)
|
| 448 |
|
| 449 |
start_button.click(start_app, outputs=[welcome_screen, full_app])
|
|
|
|
| 339 |
"mind storm" : "Sit quietly and focus on one thought.",
|
| 340 |
"mental struggle" : "Write a small gratitude note.",
|
| 341 |
"mind fatigue" : "Do light stretches or walk for 5 minutes."
|
|
|
|
| 342 |
}
|
| 343 |
|
| 344 |
# Functions
|
|
|
|
| 401 |
welcome_screen = gr.Column(visible=True)
|
| 402 |
full_app = gr.Tabs(visible=False)
|
| 403 |
|
| 404 |
+
with welcome_screen:
|
| 405 |
+
gr.HTML("""
|
| 406 |
+
<style>
|
| 407 |
+
#main-title {
|
| 408 |
+
text-align: center;
|
| 409 |
+
font-size: 2.5em;
|
| 410 |
+
}
|
| 411 |
+
#subtitle {
|
| 412 |
+
text-align: center;
|
| 413 |
+
font-size: 1.2em;
|
| 414 |
+
color: #ccc;
|
| 415 |
+
margin-bottom: 30px;
|
| 416 |
+
}
|
| 417 |
+
#start-btn {
|
| 418 |
+
background-color: #ff69b4;
|
| 419 |
+
color: white;
|
| 420 |
+
font-weight: bold;
|
| 421 |
+
border: none;
|
| 422 |
+
border-radius: 10px;
|
| 423 |
+
padding: 14px 45px;
|
| 424 |
+
font-size: 1.1em;
|
| 425 |
+
cursor: pointer;
|
| 426 |
+
display: block;
|
| 427 |
+
margin: 0 auto;
|
| 428 |
+
}
|
| 429 |
+
#start-btn:hover {
|
| 430 |
+
background-color: #ff85c1;
|
| 431 |
+
}
|
| 432 |
+
</style>
|
| 433 |
+
""")
|
| 434 |
+
gr.Markdown("<h1 id='main-title'>StrongMind Therapist 2.0</h1>")
|
| 435 |
+
gr.Markdown("<h3 id='subtitle'>Your peaceful space to talk, journal, and focus.</h3>")
|
| 436 |
+
start_button = gr.Button("🌸 Get Started", elem_id="start-btn")
|
| 437 |
+
|
| 438 |
+
def start_app():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 439 |
return gr.update(visible=False), gr.update(visible=True)
|
| 440 |
|
| 441 |
start_button.click(start_app, outputs=[welcome_screen, full_app])
|