Shreyas094 commited on
Commit
ef5fd00
·
verified ·
1 Parent(s): 407de98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 YOUR_HUGGING_FACE_API_KEY"}
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"""