psyche commited on
Commit
69b6dba
·
verified ·
1 Parent(s): 3fb8cb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,7 +44,7 @@ INSERT = """
44
 
45
 
46
  connect = sqlite3.connect("history.db", check_same_thread=False)
47
- cursor = self.connect.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
- self.cursor.execute(INSERT, (message, "".join(outputs)))
97
- self.connect.commit()
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