Spaces:
Sleeping
Sleeping
Update utils/helper.py
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|