Spaces:
Running
Running
generate images button
Browse files
frontend/webui/hf_demo.py
CHANGED
@@ -133,10 +133,7 @@ with gr.Blocks(css=css) as demo:
|
|
133 |
gr.HTML(_get_footer_message())
|
134 |
|
135 |
inputs = [prompt, steps, seed]
|
136 |
-
prompt.input(fn=predict, inputs=inputs)
|
137 |
generate_btn.click(fn=predict, inputs=inputs, outputs=image)
|
138 |
-
steps.change(fn=predict, inputs=inputs)
|
139 |
-
seed.change(fn=predict, inputs=inputs)
|
140 |
|
141 |
|
142 |
def start_demo_text_to_image(share=False):
|
|
|
133 |
gr.HTML(_get_footer_message())
|
134 |
|
135 |
inputs = [prompt, steps, seed]
|
|
|
136 |
generate_btn.click(fn=predict, inputs=inputs, outputs=image)
|
|
|
|
|
137 |
|
138 |
|
139 |
def start_demo_text_to_image(share=False):
|