Spaces:
Sleeping
Sleeping
RillSvai commited on
Commit ·
59e584b
1
Parent(s): 37af69c
add auth
Browse files
app.py
CHANGED
|
@@ -79,7 +79,8 @@ def send_webhook(webhook_url: str, data: Dict[str, Any]):
|
|
| 79 |
response = requests.post(
|
| 80 |
webhook_url,
|
| 81 |
json=data,
|
| 82 |
-
headers={'Content-Type': 'application/json'
|
|
|
|
| 83 |
)
|
| 84 |
response.raise_for_status()
|
| 85 |
logger.info(f"Webhook sent successfully to {webhook_url}")
|
|
|
|
| 79 |
response = requests.post(
|
| 80 |
webhook_url,
|
| 81 |
json=data,
|
| 82 |
+
headers={'Content-Type': 'application/json',
|
| 83 |
+
'Authorization': f'Bearer {HUGGINGFACE_ACCESS_TOKEN}'}
|
| 84 |
)
|
| 85 |
response.raise_for_status()
|
| 86 |
logger.info(f"Webhook sent successfully to {webhook_url}")
|