NanditaVora commited on
Commit
74daf61
·
verified ·
1 Parent(s): 87170cd

Update app.py

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