StoryDiffusion icon indicating copy to clipboard operation
StoryDiffusion copied to clipboard

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

Open lvalics opened this issue 1 year ago • 0 comments

  • 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.

lvalics avatar May 16 '24 07:05 lvalics