Upload localKB_construct.py
Browse files- localKB_construct.py +2 -2
localKB_construct.py
CHANGED
@@ -32,8 +32,8 @@ import os
|
|
32 |
from rich import print
|
33 |
|
34 |
## enironment settings.
|
35 |
-
os.environ["OPENAI_API_KEY"] =
|
36 |
-
openai.api_key =
|
37 |
# file_path = "/Users/yunshi/Downloads/txt_dir/Sparks_of_AGI.pdf"
|
38 |
# file_path = "/Users/yunshi/Downloads/txt_dir/2023年百人会电动论坛 纪要 20230401.pdf"
|
39 |
|
|
|
32 |
from rich import print
|
33 |
|
34 |
## enironment settings.
|
35 |
+
os.environ["OPENAI_API_KEY"] = os.environ['user_token']
|
36 |
+
openai.api_key = os.environ['user_token']
|
37 |
# file_path = "/Users/yunshi/Downloads/txt_dir/Sparks_of_AGI.pdf"
|
38 |
# file_path = "/Users/yunshi/Downloads/txt_dir/2023年百人会电动论坛 纪要 20230401.pdf"
|
39 |
|