ash123 commited on
Commit
0905ea0
1 Parent(s): a452886

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -177,7 +177,7 @@ css = """
177
  .image_duplication{position: absolute; width: 100px; left: 50px}
178
  """
179
 
180
- block = gr.Blocks(theme = "gradio/soft")
181
 
182
  with block as demo:
183
  gr.HTML(
@@ -293,7 +293,7 @@ with block as demo:
293
  inputs=[prompt_input, negative,
294
  inf_steps_input, seed_input, guidance_scale],
295
  outputs=[gallery],
296
- cache_examples=False)
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)
 
177
  .image_duplication{position: absolute; width: 100px; left: 50px}
178
  """
179
 
180
+ block = gr.Blocks(css=css)
181
 
182
  with block as demo:
183
  gr.HTML(
 
293
  inputs=[prompt_input, negative,
294
  inf_steps_input, seed_input, guidance_scale],
295
  outputs=[gallery],
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)