sattari commited on
Commit
4726c37
·
verified ·
1 Parent(s): ce480c3

Update Legal ChatBot.py

Browse files
Files changed (1) hide show
  1. Legal ChatBot.py +2 -5
Legal ChatBot.py CHANGED
@@ -11,12 +11,9 @@ 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
- # 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
 
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