Update app.py
Browse files
app.py
CHANGED
@@ -53,8 +53,7 @@ def generate_image(prompt: str, negative_prompt: str = "", inference_steps: int
|
|
53 |
|
54 |
|
55 |
examples = [
|
56 |
-
["A watercolor painting of a bird"]
|
57 |
-
["A watercolor painting of an otter"]
|
58 |
]
|
59 |
css = """
|
60 |
.gradio-container {
|
@@ -177,7 +176,7 @@ css = """
|
|
177 |
.image_duplication{position: absolute; width: 100px; left: 50px}
|
178 |
"""
|
179 |
|
180 |
-
block = gr.Blocks(
|
181 |
|
182 |
with block as demo:
|
183 |
gr.HTML(
|
@@ -294,7 +293,7 @@ with block as demo:
|
|
294 |
inf_steps_input, seed_input, guidance_scale],
|
295 |
outputs=[gallery, community_icon,
|
296 |
loading_icon, share_button],
|
297 |
-
cache_examples=
|
298 |
ex.dataset.headers = [""]
|
299 |
negative.submit(generate_image, inputs=[
|
300 |
prompt_input, negative, inf_steps_input, seed_input, guidance_scale], outputs=[gallery], postprocess=False)
|
|
|
53 |
|
54 |
|
55 |
examples = [
|
56 |
+
["A watercolor painting of a bird"]
|
|
|
57 |
]
|
58 |
css = """
|
59 |
.gradio-container {
|
|
|
176 |
.image_duplication{position: absolute; width: 100px; left: 50px}
|
177 |
"""
|
178 |
|
179 |
+
block = gr.Blocks(theme = "bethecloud/storj_theme")
|
180 |
|
181 |
with block as demo:
|
182 |
gr.HTML(
|
|
|
293 |
inf_steps_input, seed_input, guidance_scale],
|
294 |
outputs=[gallery, community_icon,
|
295 |
loading_icon, share_button],
|
296 |
+
cache_examples=True)
|
297 |
ex.dataset.headers = [""]
|
298 |
negative.submit(generate_image, inputs=[
|
299 |
prompt_input, negative, inf_steps_input, seed_input, guidance_scale], outputs=[gallery], postprocess=False)
|