from constants import css import gradio as gr block = gr.Blocks(css=css) with block: gr.HTML( """

Evaluate Schedulers with StableDiffusionPipeline 🧨

This Space allows you to quantitatively compare different noise schedulers with a `StableDiffusionPipeline`.
One of the applications of this Space could be to evaluate different schedulers for a certain Stable Diffusion checkpoint
for a fixed number of inference steps.

""" ) with gr.Group(): with gr.Box(): with gr.Row(elem_id="prompt-container").style(equal_height=True): with gr.Column(): text = gr.Textbox( label="Enter your prompt", show_label=False, max_lines=1, placeholder="Enter your prompt", elem_id="prompt-text-input", ).style( border=(True, False, True, True), rounded=(True, False, False, True), container=False, ) negative = gr.Textbox( label="Enter your negative prompt", show_label=False, max_lines=1, placeholder="Enter a negative prompt", elem_id="negative-prompt-text-input", ).style( border=(True, False, True, True), rounded=(True, False, False, True), container=False, ) btn = gr.Button("Generate image").style( margin=False, rounded=(False, True, True, False), full_width=False, ) gr.HTML( """

How it works?

Notes

""" ) block.launch()