AliInamdar commited on
Commit
0366195
·
verified ·
1 Parent(s): 4b39287

Update utils/helper.py

Browse files
Files changed (1) hide show
  1. utils/helper.py +5 -1
utils/helper.py CHANGED
@@ -6,8 +6,12 @@ os.system("pip install together")
6
 
7
  from together import Together
8
 
9
- api = "tgp_v1_QxHjcs582Y4kSGPd5a2VyrKDD6S81ctp-M-rT_ioDNE"
 
 
 
10
 
 
11
  client = Together(api_key=os.environ["api"])
12
 
13
 
 
6
 
7
  from together import Together
8
 
9
+ import os
10
+
11
+ # Set the environment variable (just for testing purposes)
12
+ os.environ["api"] = "tgp_v1_QxHjcs582Y4kSGPd5a2VyrKDD6S81ctp-M-rT_ioDNE"
13
 
14
+ # Now, the code can access the api key from the environment variable
15
  client = Together(api_key=os.environ["api"])
16
 
17