Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def call_api(
|
|
| 103 |
print(f"[HF] POST {url}")
|
| 104 |
print(f"[HF] payload keys = {list(payload.keys())}")
|
| 105 |
try:
|
| 106 |
-
resp = requests.post(url, json=payload, headers = headers, timeout=300
|
| 107 |
print(f"[HF] status = {resp.status_code}")
|
| 108 |
if resp.is_redirect:
|
| 109 |
print(f"[HF] redirect → {resp.headers.get('location')}")
|
|
|
|
| 103 |
print(f"[HF] POST {url}")
|
| 104 |
print(f"[HF] payload keys = {list(payload.keys())}")
|
| 105 |
try:
|
| 106 |
+
resp = requests.post(url, json=payload, headers = headers, timeout=300)
|
| 107 |
print(f"[HF] status = {resp.status_code}")
|
| 108 |
if resp.is_redirect:
|
| 109 |
print(f"[HF] redirect → {resp.headers.get('location')}")
|