Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import keras_cv
|
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
-
|
7 |
resolution = 512
|
8 |
dreambooth_model = keras_cv.models.StableDiffusion(
|
9 |
img_width=resolution, img_height=resolution, jit_compile=True,
|
@@ -29,8 +29,9 @@ def generate_images(prompt: str, num_imgs_to_gen: int, num_steps: int):
|
|
29 |
|
30 |
return generated_img
|
31 |
|
|
|
32 |
|
33 |
-
with gr.Blocks() as demo:
|
34 |
gr.HTML("<h2 style=\"font-size: 2em; font-weight: bold\" align=\"center\">Keras Dreambooth - Pink Floyd Division Bell Demo</h2>")
|
35 |
|
36 |
gr.Markdown("This model has been fine tuned to learn the concept of Division Bell from Pink Floyd's famous album `The Division Bell`")
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
+
# load keras model
|
7 |
resolution = 512
|
8 |
dreambooth_model = keras_cv.models.StableDiffusion(
|
9 |
img_width=resolution, img_height=resolution, jit_compile=True,
|
|
|
29 |
|
30 |
return generated_img
|
31 |
|
32 |
+
css_code='.gradio-container {background-color:lightskyblue} .container {background: lightskyblue !important}'
|
33 |
|
34 |
+
with gr.Blocks(css=css_code) as demo:
|
35 |
gr.HTML("<h2 style=\"font-size: 2em; font-weight: bold\" align=\"center\">Keras Dreambooth - Pink Floyd Division Bell Demo</h2>")
|
36 |
|
37 |
gr.Markdown("This model has been fine tuned to learn the concept of Division Bell from Pink Floyd's famous album `The Division Bell`")
|