Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,10 +16,10 @@ YOUR_TOKEN=MY_SECRET_TOKEN
|
|
16 |
|
17 |
device="cpu"
|
18 |
|
19 |
-
#prompt_pipe = StableDiffusionPipeline.from_pretrained("
|
20 |
#prompt_pipe.to(device)
|
21 |
|
22 |
-
img_pipe = StableDiffusionImg2ImgPipeline.from_pretrained("
|
23 |
img_pipe.to(device)
|
24 |
|
25 |
source_img = gr.Image(source="upload", type="filepath", label="init_img | 512*512 px")
|
|
|
16 |
|
17 |
device="cpu"
|
18 |
|
19 |
+
#prompt_pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", use_auth_token=YOUR_TOKEN)
|
20 |
#prompt_pipe.to(device)
|
21 |
|
22 |
+
img_pipe = StableDiffusionImg2ImgPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", use_auth_token=YOUR_TOKEN)
|
23 |
img_pipe.to(device)
|
24 |
|
25 |
source_img = gr.Image(source="upload", type="filepath", label="init_img | 512*512 px")
|