Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -9,7 +9,7 @@ app = Flask(__name__)
|
|
| 9 |
|
| 10 |
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/kumar9/word-auto-filled"
|
| 12 |
-
headers = {"Authorization": "Bearer
|
| 13 |
|
| 14 |
def query(payload):
|
| 15 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/kumar9/word-auto-filled"
|
| 12 |
+
headers = {"Authorization": "Bearer hash_code"}
|
| 13 |
|
| 14 |
def query(payload):
|
| 15 |
response = requests.post(API_URL, headers=headers, json=payload)
|