Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
|
2 |
import os
|
3 |
-
|
4 |
HF_Key = os.environ['HF_Key']
|
5 |
import openai
|
6 |
import json
|
@@ -48,7 +48,7 @@ class Chatbot:
|
|
48 |
|
49 |
def __init__(self, index):
|
50 |
self.index = index
|
51 |
-
openai.api_key =
|
52 |
self.chat_history = []
|
53 |
|
54 |
QA_PROMPT_TMPL = (
|
|
|
1 |
|
2 |
import os
|
3 |
+
OPENAI_API_KEY = os.environ['Open_AI_Key']
|
4 |
HF_Key = os.environ['HF_Key']
|
5 |
import openai
|
6 |
import json
|
|
|
48 |
|
49 |
def __init__(self, index):
|
50 |
self.index = index
|
51 |
+
openai.api_key = OPENAI_API_KEY
|
52 |
self.chat_history = []
|
53 |
|
54 |
QA_PROMPT_TMPL = (
|