JirasakJo commited on
Commit
1ffc0ed
·
verified ·
1 Parent(s): 7767812

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -271,10 +271,16 @@ def main():
271
  # Display chat history
272
  display_chat_history()
273
 
274
- # Main query interface with enhanced styling
275
- st.markdown("<br>", unsafe_allow_html=True)
 
 
 
 
 
 
276
  query = st.text_input(
277
- "โปรดระบุคำถามเกี่ยวกับปฏิทินการศึกษา:",
278
  placeholder="เช่น: วันสุดท้ายของการสอบปากเปล่าในภาคเรียนที่ 1/2567 คือวันที่เท่าไร?",
279
  key="query_input"
280
  )
@@ -326,7 +332,7 @@ def main():
326
  # Enhanced system information section
327
  st.markdown("""
328
  <div style="background-color: #F9FAFB; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem;">
329
- <h3>ℹ️ เกี่ยวกับระบบ</h3>
330
  <p style="color: #ff0015;">
331
  ระบบนี้ใช้เทคโนโลยี <strong>RAG (Retrieval-Augmented Generation)</strong>
332
  ในการค้นหาและตอบคำถามเกี่ยวกับปฏิทินการศึกษา
@@ -345,7 +351,7 @@ def main():
345
  # Enhanced system status section
346
  st.markdown("""
347
  <div style="background-color: #f9fafb; padding: 1.5rem; border-radius: 12px;">
348
- <h3>🔄 สถานะระบบ</h3>
349
  <div style="margin-top: 1rem;">
350
  <p><strong>⏰ เวลาปัจจุบัน:</strong><br>
351
  {}</p>
 
271
  # Display chat history
272
  display_chat_history()
273
 
274
+ # Add the styled label using st.markdown
275
+ st.markdown("""
276
+ <label for="query_input" style="font-size: 1.2rem; font-weight: bold; color: black;">
277
+ โปรดระบุคำถามเกี่ยวกับ <span style="color: white; background-color: black; padding: 0 0.2rem;">ปฏิทินการศึกษา:</span>
278
+ </label>
279
+ """, unsafe_allow_html=True)
280
+
281
+ # The input box without a label
282
  query = st.text_input(
283
+ "",
284
  placeholder="เช่น: วันสุดท้ายของการสอบปากเปล่าในภาคเรียนที่ 1/2567 คือวันที่เท่าไร?",
285
  key="query_input"
286
  )
 
332
  # Enhanced system information section
333
  st.markdown("""
334
  <div style="background-color: #F9FAFB; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem;">
335
+ <h3 style="color: #1E3A8A;">ℹ️ เกี่ยวกับระบบ</h3>
336
  <p style="color: #ff0015;">
337
  ระบบนี้ใช้เทคโนโลยี <strong>RAG (Retrieval-Augmented Generation)</strong>
338
  ในการค้นหาและตอบคำถามเกี่ยวกับปฏิทินการศึกษา
 
351
  # Enhanced system status section
352
  st.markdown("""
353
  <div style="background-color: #f9fafb; padding: 1.5rem; border-radius: 12px;">
354
+ <h3 style="color: #1E3A8A;">🔄 สถานะระบบ</h3>
355
  <div style="margin-top: 1rem;">
356
  <p><strong>⏰ เวลาปัจจุบัน:</strong><br>
357
  {}</p>