gradio/demo/stable-diffusion
ddayto 7174340c00
fix: deprecated arguments in stable diffusion demo (#10434)
* Refactor requirements and improve Hugging Face token handling

- Updated `requirements.txt` to include specific package versions, ensuring better dependency management and compatibility.
- Enhanced `run.py` to check for the Hugging Face access token (`HUGGING_FACE_ACCESS_TOKEN`) at runtime, providing a clear error message if it's missing.
- Replaced deprecated arguments (`use_auth_token`, `revision="fp16"`) with updated ones (`token`, `variant="fp16"`) in the StableDiffusionPipeline setup.
- Added minor formatting improvements to improve readability and maintainability in the `run.py` script.

These changes enhance user clarity, ensure compatibility with updated libraries, and improve the code's overall quality.

* chore: pin versions for diffusers and torch in requirements.txt

* refactor: use standard HF_TOKEN for authentication in run.py

* notebook

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-01-24 16:51:04 -08:00
..