noamelata commited on
Commit
a05e9a7
1 Parent(s): 27f154c

added description

Browse files
Files changed (2) hide show
  1. app.py +5 -2
  2. figures/Nested_Egg.png +0 -0
app.py CHANGED
@@ -45,12 +45,15 @@ if __name__ == "__main__":
45
  interface = partial(run, pipe=pipe)
46
  demo = gr.Interface(
47
  fn=interface,
 
 
48
  inputs=[gr.Textbox(value="a photograph of a nest with a blue egg inside", label="Prompt"),
49
  gr.Slider(minimum=1, maximum=10, value=4, step=1, label="Outer Steps"),
50
- gr.Slider(minimum=5, maximum=50, value=25, step=1, label="Inner Steps"),
51
  gr.Checkbox(label="Random Seed")],
52
  outputs=[gr.HTML(), gr.Image(shape=[512, 512], elem_id="output_image").style(width=512, height=512)],
53
- allow_flagging="never"
 
54
  )
55
  demo.queue()
56
  demo.launch()
 
45
  interface = partial(run, pipe=pipe)
46
  demo = gr.Interface(
47
  fn=interface,
48
+ title="Nested Diffusion",
49
+ description="<h3 style=\"text-align: center;\">Anytime text-to-image generation with Stable Diffusion v1.5</h3>\n<p style=\"text-align: center;\"><b>Help: </b>Type the desired prompt in the prompt box, and adjust the number of outer and inner steps to use. Using more steps takes more time, but should create a better image.<br>For more information on Nested Diffuion: <a href=\"https://github.com/noamelata/NestedDiffusion\">Github</a>, <a href=\"https://arxiv.org/abs/2305.19066\">arXiv</a></p>",
50
  inputs=[gr.Textbox(value="a photograph of a nest with a blue egg inside", label="Prompt"),
51
  gr.Slider(minimum=1, maximum=10, value=4, step=1, label="Outer Steps"),
52
+ gr.Slider(minimum=5, maximum=50, value=10, step=1, label="Inner Steps"),
53
  gr.Checkbox(label="Random Seed")],
54
  outputs=[gr.HTML(), gr.Image(shape=[512, 512], elem_id="output_image").style(width=512, height=512)],
55
+ allow_flagging="never",
56
+ thumbnail="figures/Nested_Egg.png"
57
  )
58
  demo.queue()
59
  demo.launch()
figures/Nested_Egg.png ADDED