Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from diffusers import DiffusionPipeline
|
|
7 |
from huggingface_hub import login
|
8 |
import streamlit as st
|
9 |
|
10 |
-
token=st.secrets('HF_KEY')
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9")
|
13 |
pipe = pipe.to(device)
|
|
|
7 |
from huggingface_hub import login
|
8 |
import streamlit as st
|
9 |
|
10 |
+
token=st.secrets(['HF_KEY'])
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9")
|
13 |
pipe = pipe.to(device)
|