Commit
·
0b63d0b
1
Parent(s):
b3de330
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,6 @@ class ChatWrapper:
|
|
42 |
while True:
|
43 |
print("Human:")
|
44 |
history = history or []
|
45 |
-
import openai
|
46 |
-
openai.api_key = api_key
|
47 |
output = qa_chain({"question": inp, "chat_history": history})["answer"]
|
48 |
history.append((inp, output))
|
49 |
print("AI:")
|
|
|
42 |
while True:
|
43 |
print("Human:")
|
44 |
history = history or []
|
|
|
|
|
45 |
output = qa_chain({"question": inp, "chat_history": history})["answer"]
|
46 |
history.append((inp, output))
|
47 |
print("AI:")
|