Download app.py from CompVis/stable-diffusion-license: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/CompVis/stable-diffusion-license/resolve/main/app.py
- Command line
-
hf download hf://spaces/CompVis/stable-diffusion-license/app.py
-
curl -L -o app.py https://huggingface.co/spaces/CompVis/stable-diffusion-license/resolve/main/app.py
634 Bytes
| import streamlit as st | |
| txt_link = "https://huggingface.co/spaces/CompVis/stable-diffusion-license/raw/main/license.txt" | |
| html_link = "https://huggingface.co/spaces/CompVis/stable-diffusion-license/raw/main/license.html" | |
| st.sidebar.title("Stable Diffusion") | |
| st.sidebar.markdown("## Stable Diffusion RAIL License v1.0") | |
| st.sidebar.markdown(f"This is the home of the Stable Diffusion RAIL License v1.0.\ | |
| If you would like to download the license you can get it as [.txt]({txt_link}), or [.html]({html_link}) file.") | |
| with open("license.txt", "r") as f: | |
| license_html = f.read() | |
| st.markdown(license_html, unsafe_allow_html=True) | |