asvs commited on
Commit
6e47b94
·
1 Parent(s): 309e914

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def gradientj_api_call(
30
  response = requests.post(url, headers=headers, data=json.dumps(data))
31
 
32
  if response.status_code == 200:
33
- return response.json['result']
34
  else:
35
  error = response.text
36
  return error
 
30
  response = requests.post(url, headers=headers, data=json.dumps(data))
31
 
32
  if response.status_code == 200:
33
+ return response.json()['result']
34
  else:
35
  error = response.text
36
  return error