Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import requests
|
|
|
2 |
|
3 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/LlamaGuard-7b"
|
4 |
-
|
|
|
5 |
|
6 |
|
7 |
|
|
|
1 |
import requests
|
2 |
+
import os
|
3 |
|
4 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/LlamaGuard-7b"
|
5 |
+
access_token = os.environ["ACCESS_TOKEN"]
|
6 |
+
headers = {"Authorization": f"Bearer {access_token}"}
|
7 |
|
8 |
|
9 |
|