janasumit2911 commited on
Commit
5347642
·
verified ·
1 Parent(s): c39aed5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ def send_results_to_api(solutions, url):
175
  logging.info(f"Sending results to API at {url} with data: {solutions}")
176
  # response = requests.patch(url, json = {"solutions":solutions}) # Set a timeout headers=headers,, timeout=60
177
  data = {"solutions":solutions}
178
- response = requests.patch(url, data=json.dumps(data), headers=headers)
179
  response.raise_for_status()
180
  logging.info(f"Response from API: {response.text}")
181
  return response.json()
 
175
  logging.info(f"Sending results to API at {url} with data: {solutions}")
176
  # response = requests.patch(url, json = {"solutions":solutions}) # Set a timeout headers=headers,, timeout=60
177
  data = {"solutions":solutions}
178
+ response = requests.patch(url, data=json.dumps(data), headers=headers,timeout=20)
179
  response.raise_for_status()
180
  logging.info(f"Response from API: {response.text}")
181
  return response.json()