Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import os
|
| 2 |
-
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import torch
|
|
@@ -8,7 +8,7 @@ from PIL import Image
|
|
| 8 |
from diffusers import StableDiffusionPipeline
|
| 9 |
|
| 10 |
print("hello sylvain")
|
| 11 |
-
|
| 12 |
device="cpu"
|
| 13 |
|
| 14 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
|
|
|
|
| 1 |
import os
|
| 2 |
+
print(os.environ)
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import torch
|
|
|
|
| 8 |
from diffusers import StableDiffusionPipeline
|
| 9 |
|
| 10 |
print("hello sylvain")
|
| 11 |
+
YOUR_TOKEN="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"
|
| 12 |
device="cpu"
|
| 13 |
|
| 14 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
|