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
..
2025-01-01 15:05:12 -05:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2023-10-31 10:11:17 -04:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-05-16 13:08:21 -04:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-12-16 21:18:36 +00:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-10-08 22:17:17 -07:00
2024-07-29 22:08:51 -07:00
2024-07-29 22:08:51 -07:00
2024-07-30 20:06:13 +00:00
2024-07-29 22:08:51 -07:00
2024-07-29 22:08:51 -07:00
2024-07-29 22:08:51 -07:00