Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
from torch import autocast
|
|
@@ -6,7 +8,7 @@ from diffusers import StableDiffusionPipeline
|
|
| 6 |
|
| 7 |
print("hello sylvain")
|
| 8 |
|
| 9 |
-
YOUR_TOKEN=
|
| 10 |
|
| 11 |
device="cpu"
|
| 12 |
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
from torch import autocast
|
|
|
|
| 8 |
|
| 9 |
print("hello sylvain")
|
| 10 |
|
| 11 |
+
YOUR_TOKEN=os.environ.getattribute("HF_TOKEN_SD")
|
| 12 |
|
| 13 |
device="cpu"
|
| 14 |
|