Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|