Download app.py from himanshu-skid19/Unconditional_Image_Generation_Using_Diffusion_Models: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/spaces/himanshu-skid19/Unconditional_Image_Generation_Using_Diffusion_Models/resolve/refs%2Fpr%2F2/app.py
- Command line
-
hf download hf://spaces/himanshu-skid19/Unconditional_Image_Generation_Using_Diffusion_Models@refs/pr/2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/himanshu-skid19/Unconditional_Image_Generation_Using_Diffusion_Models/resolve/refs%2Fpr%2F2/app.py
176 Bytes
| pip install transformers | |
| model_id = "himanshu-skid19/new_linear_model_1090.pt" | |
| tokenizer = AutoTokenizer.from_pretrained(model_id) | |
| model = AutoModel.from_pretrained(model_id) | |