mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
567 stars 152 forks source link

Enhance LoraManager to Support .tar Files #371

Closed DrHazemAli closed 3 months ago

DrHazemAli commented 3 months ago

Greetings. This pull request introduces enhancements to the LoraManager class, enabling tar file support and improved handling of both .tar and .safetensors files. Previously, the class only supported downloading and saving files directly from URLs. With these updates, the class now also extracts .tar files and specifically retrieves .safetensors files contained within them.

Key Changes:

This update aligns with our ongoing efforts to enhance the usability and functionality of our data management tools.