Spaces:
Sleeping
Sleeping
Update Legal ChatBot.py
Browse files- Legal ChatBot.py +5 -2
Legal ChatBot.py
CHANGED
@@ -11,9 +11,12 @@ from langchain.text_splitter import CharacterTextSplitter
|
|
11 |
import openai
|
12 |
|
13 |
# Set OpenAI API Key
|
14 |
-
openai_api_key = os.environ.get("OPENAI_API_KEY")
|
15 |
-
openai.api_key = openai_api_key
|
16 |
|
|
|
|
|
|
|
17 |
|
18 |
|
19 |
# Document file paths
|
|
|
11 |
import openai
|
12 |
|
13 |
# Set OpenAI API Key
|
14 |
+
# openai_api_key = os.environ.get("OPENAI_API_KEY")
|
15 |
+
# openai.api_key = openai_api_key
|
16 |
|
17 |
+
# Access the API key from environment variables
|
18 |
+
key = "sk-XC6vDUoMgm_qjeT-iAKtJOrPHLZZAupnjO39kh_x9nT3BlbkFJ-tfz3_p02QWfnC77SnWI32IPWLAqtLnX_VMlBpTH4A"
|
19 |
+
os.environ["OPENAI_API_KEY"] = key
|
20 |
|
21 |
|
22 |
# Document file paths
|