Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ from diffusers import StableDiffusionPipeline
|
|
4 |
from PIL import Image
|
5 |
import torch
|
6 |
|
|
|
|
|
|
|
7 |
# Streamlit application setup
|
8 |
st.set_page_config(page_title="Stable Diffusion Image Generator", layout="wide")
|
9 |
|
|
|
4 |
from PIL import Image
|
5 |
import torch
|
6 |
|
7 |
+
# Ensure the Hugging Face token is set as an environment variable
|
8 |
+
os.environ["HUGGINGFACE_HUB_TOKEN"] = "your_hf_token_here" # Replace with your actual token
|
9 |
+
|
10 |
# Streamlit application setup
|
11 |
st.set_page_config(page_title="Stable Diffusion Image Generator", layout="wide")
|
12 |
|