Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,10 @@ import json
|
|
6 |
import time
|
7 |
import requests
|
8 |
|
9 |
-
|
10 |
-
load_dotenv()
|
11 |
|
12 |
-
# 从 .env 文件获取 API key
|
13 |
-
api_key = os.getenv("HUGGINGFACE_API_KEY")
|
14 |
|
15 |
-
client = InferenceClient(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"
|