Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,8 @@ def send_post_request(url, const_smiles, var_smiles, main_cls, minor_cls, delta_
|
|
| 18 |
# 发送POST请求
|
| 19 |
response = requests.post(url, headers={"Content-Type": "application/json"}, data=json.dumps(data))
|
| 20 |
print("------response-----")
|
|
|
|
|
|
|
| 21 |
print(response.json())
|
| 22 |
# 返回请求响应内容
|
| 23 |
return response.json()
|
|
|
|
| 18 |
# 发送POST请求
|
| 19 |
response = requests.post(url, headers={"Content-Type": "application/json"}, data=json.dumps(data))
|
| 20 |
print("------response-----")
|
| 21 |
+
print(f"'status_code': {response.status_code}")
|
| 22 |
+
print(f"'text': {response.text}")
|
| 23 |
print(response.json())
|
| 24 |
# 返回请求响应内容
|
| 25 |
return response.json()
|