Commit
·
f97920f
1
Parent(s):
e960d9b
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,20 +19,17 @@ class ChatWrapper:
|
|
| 19 |
#chain = self.set_openai_api_key(api_key)
|
| 20 |
try:
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
with open("vectorstore.pkl", "rb") as f:
|
| 27 |
vectorstore = pickle.load(f)
|
| 28 |
-
|
| 29 |
-
os.environ["OPENAI_API_KEY"] = api_key
|
| 30 |
-
qa_chain = get_chain(vectorstore)
|
| 31 |
|
| 32 |
-
print("Chat with your docs!")
|
| 33 |
-
|
| 34 |
-
with open("vectorstore.pkl", "rb") as f:
|
| 35 |
-
vectorstore = pickle.load(f)
|
| 36 |
qa_chain = get_chain(vectorstore)
|
| 37 |
chat_history = []
|
| 38 |
print("Chat with your docs!")
|
|
|
|
| 19 |
#chain = self.set_openai_api_key(api_key)
|
| 20 |
try:
|
| 21 |
|
| 22 |
+
# with open("vectorstore.pkl", "rb") as f:
|
| 23 |
+
# vectorstore = pickle.load(f)
|
| 24 |
+
|
| 25 |
+
# os.environ["OPENAI_API_KEY"] = api_key
|
| 26 |
+
# qa_chain = get_chain(vectorstore)
|
| 27 |
|
| 28 |
+
# print("Chat with your docs!")
|
| 29 |
|
| 30 |
with open("vectorstore.pkl", "rb") as f:
|
| 31 |
vectorstore = pickle.load(f)
|
|
|
|
|
|
|
|
|
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
qa_chain = get_chain(vectorstore)
|
| 34 |
chat_history = []
|
| 35 |
print("Chat with your docs!")
|