AbdullahAlfaraj / Auto-Photoshop-StableDiffusion-Plugin

A user-friendly plug-in that makes it easy to generate stable diffusion images inside Photoshop using either Automatic or ComfyUI as a backend.
MIT License
6.7k stars 510 forks source link

Improvements to python server #442

Open deedy5 opened 9 months ago

deedy5 commented 9 months ago
  1. updated and simplified requirements.txt,
  2. requests have been replaced with httpx,
  3. ruff formatted for better compliance with python,
  4. unnecessary imports removed,
  5. minor feature enhancements.
deedy5 commented 9 months ago

Unfortunately, there are no tests and I can't make sure everything works as it should. But I have done all the operations from deprecated-do-not-use-start_server.sh - all dependencies are installed without conflicts, the server starts and responds to requests.

I think the server can be installed and started using deprecated-do-not-use-start_server.sh. At least on linux it works now.

Will need to finalize it some more:

  1. Rename the names of all variables and functions to match pep8.
  2. Develop tests so that you can quickly check that everything is working as it should.