Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def yes_man(message, history):
|
|
7 |
# return "Ask me anything!"
|
8 |
|
9 |
import requests
|
10 |
-
headers = {"Authorization": f"Bearer {
|
11 |
API_URL = "https://api-inference.huggingface.co/models/gpt2"
|
12 |
def query(payload):
|
13 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
7 |
# return "Ask me anything!"
|
8 |
|
9 |
import requests
|
10 |
+
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
11 |
API_URL = "https://api-inference.huggingface.co/models/gpt2"
|
12 |
def query(payload):
|
13 |
response = requests.post(API_URL, headers=headers, json=payload)
|