janasumit2911 commited on
Commit
9781dbc
·
verified ·
1 Parent(s): 2a14998

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def create_solutions(image_urls, names):
92
  def send_results_to_api(data, result_url):
93
  headers = {"Content-Type": "application/json"}
94
  try:
95
- response = requests.patch(result_url, json=data, headers=headers)
96
  response.raise_for_status()
97
  return response.json()
98
  except requests.exceptions.RequestException as e:
 
92
  def send_results_to_api(data, result_url):
93
  headers = {"Content-Type": "application/json"}
94
  try:
95
+ response = requests.post(result_url, json=data, headers=headers)
96
  response.raise_for_status()
97
  return response.json()
98
  except requests.exceptions.RequestException as e: