dhmeltzer commited on
Commit
1743c82
·
1 Parent(s): d21a4cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ checkpoints = ['dhmeltzer/bart-large_askscience-qg',
12
  headers = {"Authorization": f"Bearer {st.secrets['HF_token']}"}
13
 
14
  def query(checkpoint, payload):
15
- API_URL = f"https://api-inference.huggingface.co/models/{checkpoint}}"
16
 
17
  response = requests.post(API_URL,
18
  headers=headers,
 
12
  headers = {"Authorization": f"Bearer {st.secrets['HF_token']}"}
13
 
14
  def query(checkpoint, payload):
15
+ API_URL = f"https://api-inference.huggingface.co/models/{checkpoint}"
16
 
17
  response = requests.post(API_URL,
18
  headers=headers,