Srikasi commited on
Commit
176cc7e
·
verified ·
1 Parent(s): 21eea4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, allow_redirects=False)
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')}")