play7284 commited on
Commit
48704bc
·
verified ·
1 Parent(s): a52d484

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -6,13 +6,10 @@ import json
6
  import time
7
  import requests
8
 
9
- # 加载 .env 文件
10
- load_dotenv()
11
 
12
- # 从 .env 文件获取 API key
13
- api_key = os.getenv("HUGGINGFACE_API_KEY")
14
 
15
- client = InferenceClient(api_key=api_key)
16
 
17
  # 预设提示词文件路径
18
  PROMPTS_FILE = "custom_prompts.json"
 
6
  import time
7
  import requests
8
 
9
+ t = "12345hf_IsAVwGwHDKzSCQJPgIPOhhVbkSfAqfkUib"
 
10
 
 
 
11
 
12
+ client = InferenceClient(api_key=t[5:])
13
 
14
  # 预设提示词文件路径
15
  PROMPTS_FILE = "custom_prompts.json"