vinhnx90 commited on
Commit
568c54e
β€’
1 Parent(s): 691deb8
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -10,6 +10,11 @@ from langchain_openai import ChatOpenAI, OpenAIEmbeddings
10
 
11
  st.set_page_config(page_title="InkChatGPT", page_icon="πŸ“š")
12
 
 
 
 
 
 
13
 
14
  class StreamHandler(BaseCallbackHandler):
15
  def __init__(self, container, initial_text=""):
 
10
 
11
  st.set_page_config(page_title="InkChatGPT", page_icon="πŸ“š")
12
 
13
+ __import__("pysqlite3")
14
+ import sys
15
+
16
+ sys.modules["sqlite3"] = sys.modules.pop("pysqlite3")
17
+
18
 
19
  class StreamHandler(BaseCallbackHandler):
20
  def __init__(self, container, initial_text=""):
requirements.txt CHANGED
@@ -7,4 +7,5 @@ openai
7
  tiktoken
8
  pypdf
9
  docx2txt
10
- watchdog
 
 
7
  tiktoken
8
  pypdf
9
  docx2txt
10
+ watchdog
11
+ pysqlite3-binary