Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
|
4 |
# Hugging Face Inference API Configuration
|
5 |
API_URL = "https://api-inference.huggingface.co/models/tencent/Tencent-Hunyuan-Large"
|
6 |
-
headers = {"Authorization": '
|
7 |
|
8 |
def query(payload):
|
9 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
3 |
|
4 |
# Hugging Face Inference API Configuration
|
5 |
API_URL = "https://api-inference.huggingface.co/models/tencent/Tencent-Hunyuan-Large"
|
6 |
+
headers = {"Authorization": 'Bearer API_TOKEN'} # Replace with your actual token
|
7 |
|
8 |
def query(payload):
|
9 |
response = requests.post(API_URL, headers=headers, json=payload)
|