lymon
init
8e5fce5
Raw
History Blame
394 Bytes
# 在项目根目录下
from handler import EndpointHandler
from PIL import Image
handler = EndpointHandler(path=".")
# 示例:使用远程示例图
payload = {"control_image": "https://huggingface.co/jasperai/Flux.1-dev-Controlnet-Upscaler/resolve/main/examples/input.jpg"}
res = handler(payload)
print(res[0]["image_base64"][:100], "...") # 输出首 100 个字符,检查 Base64 格式