Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ import spaces
|
|
6 |
from diffusers import AutoPipelineForText2Image
|
7 |
import torch
|
8 |
|
|
|
|
|
|
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
if torch.cuda.is_available():
|
|
|
6 |
from diffusers import AutoPipelineForText2Image
|
7 |
import torch
|
8 |
|
9 |
+
from huggingface_hub import login
|
10 |
+
login(os.environ.get("HF_TOKEN"))
|
11 |
+
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
if torch.cuda.is_available():
|