Adinarayana02 commited on
Commit
b77934e
·
verified ·
1 Parent(s): bea0b61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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