Spaces:
Running
Running
Update frontend/webui/ui.py
Browse files- frontend/webui/ui.py +4 -4
frontend/webui/ui.py
CHANGED
@@ -52,10 +52,10 @@ def get_web_ui() -> gr.Blocks:
|
|
52 |
) as fastsd_web_ui:
|
53 |
gr.HTML("<center><H1>FastSD CPU</H1></center>")
|
54 |
current_mode = "LCM"
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
with gr.Column(scale=1):
|
60 |
with gr.Row(elem_id="snake1"):
|
61 |
model_text_area2 = gr.Textbox(value=" ", lines=1, placeholder="Enter a new model")
|
|
|
52 |
) as fastsd_web_ui:
|
53 |
gr.HTML("<center><H1>FastSD CPU</H1></center>")
|
54 |
current_mode = "LCM"
|
55 |
+
if app_settings.settings.lcm_diffusion_setting.use_openvino:
|
56 |
+
current_mode = "LCM-OpenVINO"
|
57 |
+
elif app_settings.settings.lcm_diffusion_setting.use_lcm_lora:
|
58 |
+
current_mode = "LCM-LoRA"
|
59 |
with gr.Column(scale=1):
|
60 |
with gr.Row(elem_id="snake1"):
|
61 |
model_text_area2 = gr.Textbox(value=" ", lines=1, placeholder="Enter a new model")
|