Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
from huggingface_hub import from_pretrained_keras
|
2 |
-
import
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
# prepare model
|
7 |
resolution = 512
|
8 |
-
sd_dreambooth_model =
|
9 |
img_width=resolution, img_height=resolution, jit_compile=True,
|
10 |
)
|
11 |
db_diffusion_model = from_pretrained_keras("merve/dreambooth_diffusion_model")
|
|
|
1 |
from huggingface_hub import from_pretrained_keras
|
2 |
+
from keras_cv import models
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
# prepare model
|
7 |
resolution = 512
|
8 |
+
sd_dreambooth_model = models.StableDiffusion(
|
9 |
img_width=resolution, img_height=resolution, jit_compile=True,
|
10 |
)
|
11 |
db_diffusion_model = from_pretrained_keras("merve/dreambooth_diffusion_model")
|