Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|