Spaces:
Running
Running
jonathanjordan21
commited on
Commit
•
9ae38fb
1
Parent(s):
acb7006
Update app.py
Browse files
app.py
CHANGED
@@ -114,8 +114,8 @@ if prompt := st.chat_input("Ask me anything.."):
|
|
114 |
# Insert data into the table
|
115 |
cur = st.session_state.conn.cursor()
|
116 |
cur.execute(
|
117 |
-
f"INSERT INTO chat_history (input_text, response_text, created_at) VALUES (
|
118 |
-
|
119 |
)
|
120 |
|
121 |
# Commit the transaction
|
|
|
114 |
# Insert data into the table
|
115 |
cur = st.session_state.conn.cursor()
|
116 |
cur.execute(
|
117 |
+
f"INSERT INTO chat_history (input_text, response_text, created_at) VALUES (%s, %s, %s)",
|
118 |
+
(prompt, response, datetime.now(timezone.utc) + timedelta(hours=7))
|
119 |
)
|
120 |
|
121 |
# Commit the transaction
|