Spaces:
Running
Running
udpated progress
Browse files
frontend/webui/hf_demo.py
CHANGED
@@ -94,7 +94,7 @@ with gr.Blocks(css=css) as demo:
|
|
94 |
with gr.Column(elem_id="container"):
|
95 |
use_openvino = "- OpenVINO" if is_openvino_device() else ""
|
96 |
gr.Markdown(
|
97 |
-
f"""#FastSD CPU
|
98 |
**Device : {DEVICE.upper()} , {get_device_name()}**
|
99 |
""",
|
100 |
elem_id="intro",
|
@@ -132,12 +132,10 @@ with gr.Blocks(css=css) as demo:
|
|
132 |
gr.HTML(_get_footer_message())
|
133 |
|
134 |
inputs = [prompt, steps, seed]
|
135 |
-
prompt.input(fn=predict, inputs=inputs
|
136 |
-
generate_btn.click(
|
137 |
-
|
138 |
-
)
|
139 |
-
steps.change(fn=predict, inputs=inputs, show_progress=False)
|
140 |
-
seed.change(fn=predict, inputs=inputs, show_progress=False)
|
141 |
|
142 |
|
143 |
def start_demo_text_to_image(share=False):
|
|
|
94 |
with gr.Column(elem_id="container"):
|
95 |
use_openvino = "- OpenVINO" if is_openvino_device() else ""
|
96 |
gr.Markdown(
|
97 |
+
f"""# FastSD CPU {use_openvino}
|
98 |
**Device : {DEVICE.upper()} , {get_device_name()}**
|
99 |
""",
|
100 |
elem_id="intro",
|
|
|
132 |
gr.HTML(_get_footer_message())
|
133 |
|
134 |
inputs = [prompt, steps, seed]
|
135 |
+
prompt.input(fn=predict, inputs=inputs)
|
136 |
+
generate_btn.click(fn=predict, inputs=inputs, outputs=image)
|
137 |
+
steps.change(fn=predict, inputs=inputs)
|
138 |
+
seed.change(fn=predict, inputs=inputs)
|
|
|
|
|
139 |
|
140 |
|
141 |
def start_demo_text_to_image(share=False):
|