allinaigc commited on
Commit
54afdc9
·
1 Parent(s): 4cabd10

Upload localKB_construct.py

Browse files
Files changed (1) hide show
  1. 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"] = "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"
36
- openai.api_key = "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"
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