StoryDiffusion
StoryDiffusion copied to clipboard
Started to add API call possibilities. Early alpha, but working.
- API calls possible, demo in demo_requests.json
- added to requirements.txt 3 more packages for running API.
- TODO file has been added.
- Arguments type or run the script. --no-gradio
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.