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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -195,7 +195,7 @@ def save_feedback_to_json():
195
  def add_feedback(query: str, answer: str, is_correct: bool):
196
  """Add feedback entry to session state and save to JSON and GitHub"""
197
  feedback_entry = {
198
- "timestamp": datetime.now().isoformat(),
199
  "query": query,
200
  "answer": answer,
201
  "is_correct": is_correct
@@ -274,7 +274,7 @@ def main():
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
 
@@ -362,7 +362,7 @@ def main():
362
  </div>
363
  </div>
364
  """.format(
365
- datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
366
  "status-online" if st.session_state.pipeline else "status-offline",
367
  "🟢" if st.session_state.pipeline else "🔴",
368
  "พร้อมใช้งาน" if st.session_state.pipeline else "ไม่พร้อมใช้งาน"
 
195
  def add_feedback(query: str, answer: str, is_correct: bool):
196
  """Add feedback entry to session state and save to JSON and GitHub"""
197
  feedback_entry = {
198
+ "timestamp": (datetime.now() + timedelta(hours=7)).isoformat(),
199
  "query": query,
200
  "answer": answer,
201
  "is_correct": is_correct
 
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: white; padding: 0 0.2rem;">ปฏิทินการศึกษา:</span>
278
  </label>
279
  """, unsafe_allow_html=True)
280
 
 
362
  </div>
363
  </div>
364
  """.format(
365
+ (datetime.now() + timedelta(hours=7)).strftime('%Y-%m-%d %H:%M:%S'),
366
  "status-online" if st.session_state.pipeline else "status-offline",
367
  "🟢" if st.session_state.pipeline else "🔴",
368
  "พร้อมใช้งาน" if st.session_state.pipeline else "ไม่พร้อมใช้งาน"