Spaces:
Runtime error
Runtime error
Commit
·
ef11887
1
Parent(s):
5030285
test
Browse files
app.py
CHANGED
|
@@ -8,9 +8,10 @@ from diffusers import StableDiffusionPipeline, DDIMScheduler, DiffusionPipeline
|
|
| 8 |
import streamlit as st
|
| 9 |
|
| 10 |
# model_path = WEIGHTS_DIR # If you want to use previously trained model saved in gdrive, replace this with the full path of model in gdrive
|
| 11 |
-
headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
|
| 12 |
# pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", safety_checker=None, torch_dtype=torch.float32).to("cuda")
|
| 13 |
-
|
|
|
|
| 14 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 15 |
pipe.enable_xformers_memory_efficient_attention()
|
| 16 |
g_cuda = None
|
|
|
|
| 8 |
import streamlit as st
|
| 9 |
|
| 10 |
# model_path = WEIGHTS_DIR # If you want to use previously trained model saved in gdrive, replace this with the full path of model in gdrive
|
| 11 |
+
# headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
|
| 12 |
# pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", safety_checker=None, torch_dtype=torch.float32).to("cuda")
|
| 13 |
+
|
| 14 |
+
pipe = DiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", torch_dtype=torch.float32, use_auth_token = "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")
|
| 15 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 16 |
pipe.enable_xformers_memory_efficient_attention()
|
| 17 |
g_cuda = None
|