iamstrong commited on
Commit
b152c8d
·
verified ·
1 Parent(s): bf69875

Upload 3 files

Browse files
Files changed (1) hide show
  1. app.py +35 -43
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
- gr.HTML("""
407
- <style>
408
- #main-title {
409
- text-align: center;
410
- font-size: 2.5em;
411
- }
412
- #subtitle {
413
- text-align: center;
414
- font-size: 1.2em;
415
- color: #ccc;
416
- margin-bottom: 30px;
417
- }
418
- #start-btn {
419
- background-color: #ff69b4;
420
- color: white;
421
- font-weight: bold;
422
- border: none;
423
- border-radius: 10px;
424
- padding: 14px 45px;
425
- font-size: 1.1em;
426
- cursor: pointer;
427
- display: block;
428
- margin: 0 auto;
429
- }
430
- #start-btn:hover {
431
- background-color: #ff85c1;
432
- }
433
- </style>
434
- """)
435
- gr.Markdown("<h1 id='main-title'>StrongMind Therapist 2.0</h1>")
436
- gr.Markdown("<h3 id='subtitle'>Your peaceful space to talk, journal, and focus.</h3>")
437
- start_button = gr.Button("🌸 Get Started", elem_id="start-btn")
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])