Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,7 @@ def upload_to_imgbb(image_path):
|
|
| 36 |
data={"key": IMGBB_API_KEY, "image": b64}
|
| 37 |
)
|
| 38 |
if resp.status_code == 200:
|
|
|
|
| 39 |
return resp.json()["data"]["url"]
|
| 40 |
return None
|
| 41 |
|
|
|
|
| 36 |
data={"key": IMGBB_API_KEY, "image": b64}
|
| 37 |
)
|
| 38 |
if resp.status_code == 200:
|
| 39 |
+
print(f'图床resp.json()={resp.json()}')
|
| 40 |
return resp.json()["data"]["url"]
|
| 41 |
return None
|
| 42 |
|