--- title: Matgen emoji: 🖼 colorFrom: purple colorTo: red sdk: gradio sdk_version: 5.25.2 app_file: app.py pinned: false license: mit --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference ## setup locally conda create -n matgen python=3.11 conda activate matgen pip install diffusers["torch"] transformers accelerate xformers pip install gradio pip install controlnet-aux ## local authen huggingface-cli login ## on using Huggingface ZeroGPU need to import spaces and the corresponding decorator https://huggingface.co/docs/hub/spaces-zerogpu also, check the usage of controlnet over zerogpu here: https://huggingface.co/spaces/radames/Enhance-This-HiDiffusion-SDXL/blob/main/app.py