Spaces:
Sleeping
Sleeping
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 |