Commit
·
96607b2
1
Parent(s):
95be932
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,8 @@ class ChatWrapper:
|
|
42 |
print("Chat with your docs!")
|
43 |
while True:
|
44 |
print("Human:")
|
|
|
|
|
45 |
question = input()
|
46 |
result = qa_chain({"question": question, "chat_history": chat_history})
|
47 |
chat_history.append((question, result["answer"]))
|
|
|
42 |
print("Chat with your docs!")
|
43 |
while True:
|
44 |
print("Human:")
|
45 |
+
import openai
|
46 |
+
openai.api_key = api_key
|
47 |
question = input()
|
48 |
result = qa_chain({"question": question, "chat_history": chat_history})
|
49 |
chat_history.append((question, result["answer"]))
|