Update app.py
Browse files
app.py
CHANGED
@@ -275,7 +275,7 @@ def main():
|
|
275 |
# Add the styled label using st.markdown
|
276 |
st.markdown("""
|
277 |
<label for="query_input" style="font-size: 1.2rem; font-weight: bold; color: black;">
|
278 |
-
<span style="color: white; background-color:
|
279 |
</label>
|
280 |
""", unsafe_allow_html=True)
|
281 |
|
@@ -288,12 +288,39 @@ def main():
|
|
288 |
|
289 |
# Button layout with enhanced styling
|
290 |
col1, col2, col3 = st.columns([1, 1, 4])
|
|
|
291 |
with col1:
|
292 |
-
send_query = st.button(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
with col2:
|
294 |
-
|
295 |
-
|
296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
|
298 |
# Process query
|
299 |
if send_query and query:
|
|
|
275 |
# Add the styled label using st.markdown
|
276 |
st.markdown("""
|
277 |
<label for="query_input" style="font-size: 1.2rem; font-weight: bold; color: black;">
|
278 |
+
<span style="color: white; background-color: yellow; padding: 0 0.2rem;">โปรดระบุคำถามเกี่ยวกับ ปฏิทินการศึกษา:</span>
|
279 |
</label>
|
280 |
""", unsafe_allow_html=True)
|
281 |
|
|
|
288 |
|
289 |
# Button layout with enhanced styling
|
290 |
col1, col2, col3 = st.columns([1, 1, 4])
|
291 |
+
|
292 |
with col1:
|
293 |
+
send_query = st.button(
|
294 |
+
"📤 ส่งคำถาม",
|
295 |
+
type="primary",
|
296 |
+
use_container_width=True,
|
297 |
+
key="send_query_button"
|
298 |
+
)
|
299 |
+
st.markdown("""
|
300 |
+
<style>
|
301 |
+
#send_query_button button {
|
302 |
+
background-color: #28a745 !important; /* Green background */
|
303 |
+
color: white !important;
|
304 |
+
}
|
305 |
+
</style>
|
306 |
+
""", unsafe_allow_html=True)
|
307 |
+
|
308 |
with col2:
|
309 |
+
clear_history = st.button(
|
310 |
+
"🗑️ ล้างประวัติ",
|
311 |
+
type="secondary",
|
312 |
+
use_container_width=True,
|
313 |
+
key="clear_history_button"
|
314 |
+
)
|
315 |
+
st.markdown("""
|
316 |
+
<style>
|
317 |
+
#clear_history_button button {
|
318 |
+
background-color: #dc3545 !important; /* Red background */
|
319 |
+
color: white !important;
|
320 |
+
}
|
321 |
+
</style>
|
322 |
+
""", unsafe_allow_html=True)
|
323 |
+
|
324 |
|
325 |
# Process query
|
326 |
if send_query and query:
|