tarrasyed19472007 commited on
Commit
25f2b4c
·
verified ·
1 Parent(s): cf86530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -14,7 +14,7 @@ def load_model():
14
 
15
  tokenizer, model = load_model()
16
 
17
- # Add an aesthetic background with a soothing gradient for a calming effect
18
  st.markdown(
19
  """
20
  <style>
@@ -22,7 +22,7 @@ st.markdown(
22
  background: linear-gradient(135deg, #8e2de2, #4a00e0); /* Purple gradient for a calm vibe */
23
  background-size: cover;
24
  background-attachment: fixed;
25
- color: white;
26
  }
27
  .stButton button {
28
  background-color: #6c63ff; /* Blue button color to match the calming purple gradient */
@@ -31,11 +31,11 @@ st.markdown(
31
  }
32
  .stTextInput input {
33
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background for text input */
34
- color: white;
35
  font-size: 16px;
36
  }
37
  .stMarkdown {
38
- color: white; /* Ensure markdown text is white for better readability */
39
  }
40
  </style>
41
  """,
@@ -122,4 +122,3 @@ if user_input:
122
  st.write("[Dealing with Anxiety](https://www.helpguide.org/mental-health/anxiety/tips-for-dealing-with-anxiety)")
123
  elif emotion == 'surprise':
124
  st.write("[Managing Stress](https://www.health.harvard.edu/health-a-to-z)")
125
-
 
14
 
15
  tokenizer, model = load_model()
16
 
17
+ # Add an aesthetic background with a soothing gradient for a calming effect and black text
18
  st.markdown(
19
  """
20
  <style>
 
22
  background: linear-gradient(135deg, #8e2de2, #4a00e0); /* Purple gradient for a calm vibe */
23
  background-size: cover;
24
  background-attachment: fixed;
25
+ color: black; /* Set text color to black */
26
  }
27
  .stButton button {
28
  background-color: #6c63ff; /* Blue button color to match the calming purple gradient */
 
31
  }
32
  .stTextInput input {
33
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background for text input */
34
+ color: black; /* Black text for input fields */
35
  font-size: 16px;
36
  }
37
  .stMarkdown {
38
+ color: black; /* Ensure markdown text is black for better readability */
39
  }
40
  </style>
41
  """,
 
122
  st.write("[Dealing with Anxiety](https://www.helpguide.org/mental-health/anxiety/tips-for-dealing-with-anxiety)")
123
  elif emotion == 'surprise':
124
  st.write("[Managing Stress](https://www.health.harvard.edu/health-a-to-z)")