Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,11 @@ import gradio as gr
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
import torch
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
# Load your fine-tuned model from Hugging Face
|
6 |
model_id = "MostafaAly/stable-diffusion-finetuned"
|
7 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
import torch
|
4 |
|
5 |
+
from transformers.utils import move_cache
|
6 |
+
|
7 |
+
# This will ensure cache migration is completed
|
8 |
+
move_cache()
|
9 |
+
|
10 |
# Load your fine-tuned model from Hugging Face
|
11 |
model_id = "MostafaAly/stable-diffusion-finetuned"
|
12 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|