Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ INSERT = """
|
|
44 |
|
45 |
|
46 |
connect = sqlite3.connect("history.db", check_same_thread=False)
|
47 |
-
cursor =
|
48 |
cursor.execute(_TABLE)
|
49 |
connect.commit()
|
50 |
|
@@ -93,8 +93,8 @@ def generate(
|
|
93 |
outputs.append(text)
|
94 |
yield "".join(outputs)
|
95 |
|
96 |
-
|
97 |
-
|
98 |
|
99 |
|
100 |
|
|
|
44 |
|
45 |
|
46 |
connect = sqlite3.connect("history.db", check_same_thread=False)
|
47 |
+
cursor = connect.cursor()
|
48 |
cursor.execute(_TABLE)
|
49 |
connect.commit()
|
50 |
|
|
|
93 |
outputs.append(text)
|
94 |
yield "".join(outputs)
|
95 |
|
96 |
+
cursor.execute(INSERT, (message, "".join(outputs)))
|
97 |
+
connect.commit()
|
98 |
|
99 |
|
100 |
|