Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def insert_to_db(prompt, response, temperature, top_p):
|
|
60 |
cursor = conn.cursor()
|
61 |
|
62 |
# Preparing SQL queries to INSERT a record into the database.
|
63 |
-
cursor.execute(f"INSERT INTO
|
64 |
|
65 |
# Commit your changes in the database
|
66 |
conn.commit()
|
|
|
60 |
cursor = conn.cursor()
|
61 |
|
62 |
# Preparing SQL queries to INSERT a record into the database.
|
63 |
+
cursor.execute(f"INSERT INTO breezedata(prompt, response, temperature, top_p) VALUES ('{prompt}', '{response}', {temperature}, {top_p})")
|
64 |
|
65 |
# Commit your changes in the database
|
66 |
conn.commit()
|