WenMinaaa commited on
Commit
da4ed92
1 Parent(s): d5df648

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- headers = {"Authorization": f"Bearer {ACCESS_TOKEN}"}
 
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