Commit
·
13dbebe
1
Parent(s):
863cee5
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,8 +35,8 @@ class ChatWrapper:
|
|
| 35 |
history.append((inp, "Please paste your OpenAI key to use"))
|
| 36 |
return inp, history
|
| 37 |
# Set OpenAI key
|
| 38 |
-
import openai
|
| 39 |
-
openai.api_key = api_key
|
| 40 |
# Run chain and append input.
|
| 41 |
output = chain({"question": inp, "chat_history": history})["answer"]
|
| 42 |
history.append((inp, output))
|
|
|
|
| 35 |
history.append((inp, "Please paste your OpenAI key to use"))
|
| 36 |
return inp, history
|
| 37 |
# Set OpenAI key
|
| 38 |
+
#import openai
|
| 39 |
+
#openai.api_key = api_key
|
| 40 |
# Run chain and append input.
|
| 41 |
output = chain({"question": inp, "chat_history": history})["answer"]
|
| 42 |
history.append((inp, output))
|