Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ _useragent_list = [
|
|
18 |
]
|
19 |
|
20 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
|
21 |
-
headers = {"Authorization": "Bearer
|
22 |
|
23 |
def query_llama(payload):
|
24 |
"""Send a query to the Llama model via Hugging Face API"""
|
|
|
18 |
]
|
19 |
|
20 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
|
21 |
+
headers = {"Authorization": f"Bearer {os.getenv('HUGGINGFACE_TOKEN')}"}
|
22 |
|
23 |
def query_llama(payload):
|
24 |
"""Send a query to the Llama model via Hugging Face API"""
|