ash123 commited on
Commit
a452886
1 Parent(s): cdc8c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -53,7 +53,8 @@ def generate_image(prompt: str, negative_prompt: str = "", inference_steps: int
53
 
54
 
55
  examples = [
56
- ["A watercolor painting of a bird"]
 
57
  ]
58
  css = """
59
  .gradio-container {
@@ -176,7 +177,7 @@ css = """
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(
@@ -291,9 +292,8 @@ with block as demo:
291
  fn=generate_image,
292
  inputs=[prompt_input, negative,
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)
@@ -327,5 +327,5 @@ with block as demo:
327
  </div>
328
  """
329
  )
330
-
331
  demo.launch()
 
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
  .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(
 
292
  fn=generate_image,
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)
 
327
  </div>
328
  """
329
  )
330
+ demo.queue(concurrency_count=10)
331
  demo.launch()