Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,7 +95,8 @@ st.markdown("""
|
|
| 95 |
color: #ffffff; /* White */
|
| 96 |
}
|
| 97 |
.stTextInput::placeholder, .stTextArea::placeholder {
|
| 98 |
-
color: #
|
|
|
|
| 99 |
}
|
| 100 |
.stSidebar {
|
| 101 |
background-color: #000000; /* Royal Black */
|
|
@@ -126,6 +127,11 @@ st.markdown("""
|
|
| 126 |
.footer i {
|
| 127 |
font-size: 22px;
|
| 128 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
</style>
|
| 130 |
""", unsafe_allow_html=True)
|
| 131 |
|
|
@@ -148,7 +154,8 @@ selected_task = st.sidebar.radio("Select a task", tasks)
|
|
| 148 |
# Main layout based on selected task
|
| 149 |
def handle_task_form(task_key, prompt_function, input_label, response_key):
|
| 150 |
with st.form(key=f"{task_key}_form"):
|
| 151 |
-
|
|
|
|
| 152 |
submit_button = st.form_submit_button("Get Response")
|
| 153 |
clear_button = st.form_submit_button("Clear")
|
| 154 |
|
|
@@ -210,7 +217,8 @@ elif selected_task == "💬 Real-Time Q&A Support":
|
|
| 210 |
elif selected_task == "🧠 Mental Health Check-In":
|
| 211 |
st.header("Mental Health Check-In")
|
| 212 |
with st.form(key="mental_health_check_in_form"):
|
| 213 |
-
|
|
|
|
| 214 |
col1, col2 = st.columns([2, 1])
|
| 215 |
with col1:
|
| 216 |
submit_button = st.form_submit_button("Get Advice")
|
|
@@ -232,8 +240,7 @@ st.markdown("""
|
|
| 232 |
<div class="footer">
|
| 233 |
<a href="https://github.com/muhammadibrahim313">GitHub</a> |
|
| 234 |
<a href="https://www.kaggle.com/itshappy">Kaggle</a> |
|
| 235 |
-
<a href="https://www.linkedin.com/in/
|
| 236 |
-
<
|
| 237 |
-
<i>EduNexus © 2024</i>
|
| 238 |
</div>
|
| 239 |
""", unsafe_allow_html=True)
|
|
|
|
| 95 |
color: #ffffff; /* White */
|
| 96 |
}
|
| 97 |
.stTextInput::placeholder, .stTextArea::placeholder {
|
| 98 |
+
color: #ffffff; /* White */
|
| 99 |
+
font-weight: bold;
|
| 100 |
}
|
| 101 |
.stSidebar {
|
| 102 |
background-color: #000000; /* Royal Black */
|
|
|
|
| 127 |
.footer i {
|
| 128 |
font-size: 22px;
|
| 129 |
}
|
| 130 |
+
.css-1n8h7zm .stTextArea::placeholder,
|
| 131 |
+
.css-1n8h7zm .stTextInput::placeholder {
|
| 132 |
+
color: #ffffff; /* White */
|
| 133 |
+
font-weight: bold;
|
| 134 |
+
}
|
| 135 |
</style>
|
| 136 |
""", unsafe_allow_html=True)
|
| 137 |
|
|
|
|
| 154 |
# Main layout based on selected task
|
| 155 |
def handle_task_form(task_key, prompt_function, input_label, response_key):
|
| 156 |
with st.form(key=f"{task_key}_form"):
|
| 157 |
+
st.markdown(f"<div style='color: #ffffff; font-weight: bold;'>{input_label}</div>", unsafe_allow_html=True)
|
| 158 |
+
user_input = st.text_area("", key=task_key)
|
| 159 |
submit_button = st.form_submit_button("Get Response")
|
| 160 |
clear_button = st.form_submit_button("Clear")
|
| 161 |
|
|
|
|
| 217 |
elif selected_task == "🧠 Mental Health Check-In":
|
| 218 |
st.header("Mental Health Check-In")
|
| 219 |
with st.form(key="mental_health_check_in_form"):
|
| 220 |
+
st.markdown("<div style='color: #ffffff; font-weight: bold;'>Share how you are feeling today</div>", unsafe_allow_html=True)
|
| 221 |
+
feelings = st.text_area("", key="mental_health_check_in")
|
| 222 |
col1, col2 = st.columns([2, 1])
|
| 223 |
with col1:
|
| 224 |
submit_button = st.form_submit_button("Get Advice")
|
|
|
|
| 240 |
<div class="footer">
|
| 241 |
<a href="https://github.com/muhammadibrahim313">GitHub</a> |
|
| 242 |
<a href="https://www.kaggle.com/itshappy">Kaggle</a> |
|
| 243 |
+
<a href="https://www.linkedin.com/in/muhammadibrahim313">LinkedIn</a>
|
| 244 |
+
<i>EduNexus 2024</i>
|
|
|
|
| 245 |
</div>
|
| 246 |
""", unsafe_allow_html=True)
|