Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
import requests
|
11 |
|
12 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-3B"
|
13 |
-
headers = {"Authorization": "Bearer
|
14 |
|
15 |
def query(payload):
|
16 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
10 |
import requests
|
11 |
|
12 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-3B"
|
13 |
+
headers = {"Authorization": "Bearer " + API_KEY}
|
14 |
|
15 |
def query(payload):
|
16 |
response = requests.post(API_URL, headers=headers, json=payload)
|