Arcypojeb commited on
Commit
9a75bf9
1 Parent(s): 5cafe77

Update ServFire.py

Browse files
Files changed (1) hide show
  1. ServFire.py +5 -0
ServFire.py CHANGED
@@ -13,6 +13,11 @@ class WebSocketServer:
13
  self.port = port
14
  self.server = None
15
 
 
 
 
 
 
16
  async def chatCompletion(self, question):
17
 
18
  if "api_key" not in st.session_state:
 
13
  self.port = port
14
  self.server = None
15
 
16
+ db = sqlite3.connect('chat-hub.db')
17
+ cursor = db.cursor()
18
+ cursor.execute('CREATE TABLE IF NOT EXISTS messages (id INTEGER PRIMARY KEY AUTOINCREMENT, sender TEXT, message TEXT, timestamp TEXT)')
19
+ db.commit()
20
+
21
  async def chatCompletion(self, question):
22
 
23
  if "api_key" not in st.session_state: