HVision-NKU / StoryDiffusion

Create Magic Story!
Apache License 2.0
5.43k stars 518 forks source link

Started to add API call possibilities. Early alpha, but working. #96

Closed lvalics closed 1 month ago

lvalics commented 1 month ago

You can call it with JSON now on port 8000, like http://localhost:8000/generate The response is

{ "image_paths": [ "https://localhost:8000/results/20240516-095821/image_0.png", "https://localhost:8000/results/20240516-095821/image_1.png", "https://localhost:8000/results/20240516-095821/image_2.png", "https://localhost:8000/results/20240516-095821/image_3.png", "https://localhost:8000/results/20240516-095821/image_4.png", "https://localhost:8000/results/20240516-095821/image_5.png" ] }

Not yet working to read the image from URL back, but will fix that. Is an early alpha.

Z-YuPeng commented 1 month ago

Thank you very much for your contribution. However, we may need to avoid supporting an excess of APIs. Our goal in adding features is to substantively accelerate the creative process of users. From this perspective, providing support for Gradio alone should suffice. I have encountered some restrictions from my superiors which may limit my actions on this repository. Therefore, I may be very cautious about merge operations in the future.

lvalics commented 1 month ago

No problem. I will have a copy for me then with API. I have a project where I will use it with API only. I will contribute with other things then. From my TODO file, what is the most important for you?