Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def save_qa_history(history_data):
|
|
143 |
def add_to_qa_history(query: str, answer: str):
|
144 |
"""Add new QA pair to history"""
|
145 |
history_entry = {
|
146 |
-
"timestamp": (datetime.now() + timedelta(hours=
|
147 |
"query": query,
|
148 |
"answer": answer
|
149 |
}
|
@@ -334,7 +334,7 @@ def main():
|
|
334 |
</div>
|
335 |
</div>
|
336 |
""".format(
|
337 |
-
(datetime.now() + timedelta(hours=
|
338 |
"status-online" if st.session_state.pipeline else "status-offline",
|
339 |
"🟢" if st.session_state.pipeline else "🔴",
|
340 |
"พร้อมใช้งาน" if st.session_state.pipeline else "ไม่พร้อมใช้งาน"
|
|
|
143 |
def add_to_qa_history(query: str, answer: str):
|
144 |
"""Add new QA pair to history"""
|
145 |
history_entry = {
|
146 |
+
"timestamp": (datetime.now() + timedelta(hours=6)).isoformat(),
|
147 |
"query": query,
|
148 |
"answer": answer
|
149 |
}
|
|
|
334 |
</div>
|
335 |
</div>
|
336 |
""".format(
|
337 |
+
(datetime.now() + timedelta(hours=6)).strftime('%Y-%m-%d %H:%M:%S'),
|
338 |
"status-online" if st.session_state.pipeline else "status-offline",
|
339 |
"🟢" if st.session_state.pipeline else "🔴",
|
340 |
"พร้อมใช้งาน" if st.session_state.pipeline else "ไม่พร้อมใช้งาน"
|