We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7153831 commit 276eef2Copy full SHA for 276eef2
1 file changed
scripts/get_acs_result.py
@@ -4,6 +4,9 @@
4
import sys
5
6
import requests
7
+from dotenv import find_dotenv, load_dotenv
8
+
9
+load_dotenv(find_dotenv())
10
11
12
def download_file(url, output_path):
@@ -38,9 +41,7 @@ def main():
38
41
39
42
args = parser.parse_args()
40
43
- # 设置常量
- access_key = '7c4d4edd67284c2e9c62d8b9350baaa4'
- api_url = f"https://openapi.test.dp.tech/openapi/v1/sandbox/job/{args.job_id}?accessKey={access_key}"
44
+ api_url = f"https://openapi.test.dp.tech/openapi/v1/sandbox/job/{args.job_id}?accessKey={os.getenv('MATERIALS_ACCESS_KEY')}"
45
46
# 删除已存在的输出文件
47
if os.path.exists(args.output):
0 commit comments