(img_url)
| 83 | return r.status_code == 200 and "loaded" in r.json() and r.json()["loaded"] |
| 84 | |
| 85 | def image_to_bytes(img_url): |
| 86 | img_byte = io.BytesIO() |
| 87 | load_image(img_url).save(img_byte, format="png") |
| 88 | img_data = img_byte.getvalue() |
| 89 | return img_data |
| 90 | |
| 91 | def build_tool(conf) -> Tool: |
| 92 | task_list = [] |
no outgoing calls
no test coverage detected