Spaces:
Sleeping
Sleeping
arabellastrange
commited on
Commit
·
96166e4
1
Parent(s):
6855b1e
keys added in space
Browse files- llmsearch/utilityV2.py +4 -3
llmsearch/utilityV2.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import json
|
2 |
import linecache
|
3 |
import logging
|
|
|
4 |
import re
|
5 |
import traceback
|
6 |
import tracemalloc
|
@@ -14,11 +15,11 @@ from tenacity import *
|
|
14 |
from utils import read_file
|
15 |
|
16 |
logger = logging.getLogger("agent_logger")
|
17 |
-
openai.api_key =
|
18 |
# paid and ad free
|
19 |
-
google_key =
|
20 |
# cx: The identifier of the Programmable Search Engine.
|
21 |
-
google_cx =
|
22 |
GOOGLE = "google"
|
23 |
USER = "user"
|
24 |
ASSISTANT = "assistant"
|
|
|
1 |
import json
|
2 |
import linecache
|
3 |
import logging
|
4 |
+
import os
|
5 |
import re
|
6 |
import traceback
|
7 |
import tracemalloc
|
|
|
15 |
from utils import read_file
|
16 |
|
17 |
logger = logging.getLogger("agent_logger")
|
18 |
+
openai.api_key = os.getenv('gpt_api_key')
|
19 |
# paid and ad free
|
20 |
+
google_key = os.getenv("google_search_api_key")
|
21 |
# cx: The identifier of the Programmable Search Engine.
|
22 |
+
google_cx = os.getenv("google_cx_api_key")
|
23 |
GOOGLE = "google"
|
24 |
USER = "user"
|
25 |
ASSISTANT = "assistant"
|