Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def load_beat_model():
|
|
| 26 |
# @st.cache_resource
|
| 27 |
def load_image_model():
|
| 28 |
torch.cuda.empty_cache()
|
| 29 |
-
pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5",
|
| 30 |
pipeline.to("cuda")
|
| 31 |
pipeline.load_lora_weights("Weights/pytorch_lora_weights.safetensors", weight_name="pytorch_lora_weights.safetensors")
|
| 32 |
return pipeline
|
|
|
|
| 26 |
# @st.cache_resource
|
| 27 |
def load_image_model():
|
| 28 |
torch.cuda.empty_cache()
|
| 29 |
+
pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", variant='fp16')
|
| 30 |
pipeline.to("cuda")
|
| 31 |
pipeline.load_lora_weights("Weights/pytorch_lora_weights.safetensors", weight_name="pytorch_lora_weights.safetensors")
|
| 32 |
return pipeline
|