Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,9 @@ css = """
|
|
132 |
background: #0b0f19;
|
133 |
}
|
134 |
.acknowledgments h4{
|
135 |
-
margin:
|
|
|
|
|
136 |
font-weight: bold;
|
137 |
font-size: 115%;
|
138 |
}
|
@@ -179,7 +181,7 @@ css = """
|
|
179 |
|
180 |
block = gr.Blocks(css=css)
|
181 |
|
182 |
-
with block:
|
183 |
gr.HTML(
|
184 |
"""
|
185 |
<div style="text-align: center; margin: 0 auto;">
|
@@ -293,7 +295,7 @@ with block:
|
|
293 |
fn=generate_image,
|
294 |
inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale],
|
295 |
outputs=[gallery, community_icon, loading_icon, share_button],
|
296 |
-
cache_examples=
|
297 |
ex.dataset.headers = [""]
|
298 |
negative.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
299 |
prompt_input.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
@@ -323,5 +325,5 @@ Despite how impressive being able to turn text into image is, beware to the fact
|
|
323 |
</div>
|
324 |
"""
|
325 |
)
|
326 |
-
|
327 |
-
|
|
|
132 |
background: #0b0f19;
|
133 |
}
|
134 |
.acknowledgments h4{
|
135 |
+
margin-bottom: 45px;
|
136 |
+
margin-top: 35px;
|
137 |
+
text-align: center;
|
138 |
font-weight: bold;
|
139 |
font-size: 115%;
|
140 |
}
|
|
|
181 |
|
182 |
block = gr.Blocks(css=css)
|
183 |
|
184 |
+
with block as demo:
|
185 |
gr.HTML(
|
186 |
"""
|
187 |
<div style="text-align: center; margin: 0 auto;">
|
|
|
295 |
fn=generate_image,
|
296 |
inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale],
|
297 |
outputs=[gallery, community_icon, loading_icon, share_button],
|
298 |
+
cache_examples=True)
|
299 |
ex.dataset.headers = [""]
|
300 |
negative.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
301 |
prompt_input.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
|
|
325 |
</div>
|
326 |
"""
|
327 |
)
|
328 |
+
|
329 |
+
demo.launch()
|