Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ except KeyError:
|
|
11 |
|
12 |
|
13 |
API_URL = "https://api-inference.huggingface.co/models/tencent/Tencent-Hunyuan-Large"
|
14 |
-
headers = {"Authorization": f"Bearer {
|
15 |
|
16 |
def query(payload):
|
17 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
11 |
|
12 |
|
13 |
API_URL = "https://api-inference.huggingface.co/models/tencent/Tencent-Hunyuan-Large"
|
14 |
+
headers = {"Authorization": f"Bearer {HF_API_KEY}"}
|
15 |
|
16 |
def query(payload):
|
17 |
response = requests.post(API_URL, headers=headers, json=payload)
|