Spaces:
Paused
Paused
updated model
Browse files
frontend/webui/hf_demo.py
CHANGED
|
@@ -49,7 +49,7 @@ def predict(
|
|
| 49 |
lcm_diffusion_setting = LCMDiffusionSetting()
|
| 50 |
lcm_diffusion_setting.lcm_model_id = "rupeshs/hyper-sd-sdxl-1-step"
|
| 51 |
lcm_diffusion_setting.diffusion_task = DiffusionTask.text_to_image.value
|
| 52 |
-
lcm_diffusion_setting.openvino_lcm_model_id = "rupeshs/
|
| 53 |
lcm_diffusion_setting.use_lcm_lora = False
|
| 54 |
lcm_diffusion_setting.prompt = prompt
|
| 55 |
lcm_diffusion_setting.guidance_scale = 1.0
|
|
@@ -107,7 +107,7 @@ footer {
|
|
| 107 |
def _get_footer_message() -> str:
|
| 108 |
version = f"<center><p> {APP_VERSION} "
|
| 109 |
footer_msg = version + (
|
| 110 |
-
' ©
|
| 111 |
" Rupesh Sreeraman</a></p></center>"
|
| 112 |
)
|
| 113 |
warning_msg = "<p><b> Please note that this is a minimal demo app.</b> </p><br>"
|
|
@@ -119,7 +119,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 119 |
use_openvino = "" if is_openvino_device() else ""
|
| 120 |
gr.Markdown(
|
| 121 |
f"""# FastSD CPU demo {use_openvino}
|
| 122 |
-
**Device : {DEVICE.upper()} , {get_device_name()} | OpenVINO
|
| 123 |
""",
|
| 124 |
elem_id="intro",
|
| 125 |
)
|
|
@@ -148,9 +148,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 148 |
with gr.Accordion("Advanced options", open=False):
|
| 149 |
steps = gr.Slider(
|
| 150 |
label="Steps",
|
| 151 |
-
value=
|
| 152 |
minimum=1,
|
| 153 |
-
maximum=
|
| 154 |
step=1,
|
| 155 |
)
|
| 156 |
seed = gr.Slider(
|
|
|
|
| 49 |
lcm_diffusion_setting = LCMDiffusionSetting()
|
| 50 |
lcm_diffusion_setting.lcm_model_id = "rupeshs/hyper-sd-sdxl-1-step"
|
| 51 |
lcm_diffusion_setting.diffusion_task = DiffusionTask.text_to_image.value
|
| 52 |
+
lcm_diffusion_setting.openvino_lcm_model_id = "rupeshs/sd-turbo-openvino"
|
| 53 |
lcm_diffusion_setting.use_lcm_lora = False
|
| 54 |
lcm_diffusion_setting.prompt = prompt
|
| 55 |
lcm_diffusion_setting.guidance_scale = 1.0
|
|
|
|
| 107 |
def _get_footer_message() -> str:
|
| 108 |
version = f"<center><p> {APP_VERSION} "
|
| 109 |
footer_msg = version + (
|
| 110 |
+
' © 2025 <a href="https://github.com/rupeshs">'
|
| 111 |
" Rupesh Sreeraman</a></p></center>"
|
| 112 |
)
|
| 113 |
warning_msg = "<p><b> Please note that this is a minimal demo app.</b> </p><br>"
|
|
|
|
| 119 |
use_openvino = "" if is_openvino_device() else ""
|
| 120 |
gr.Markdown(
|
| 121 |
f"""# FastSD CPU demo {use_openvino}
|
| 122 |
+
**Device : {DEVICE.upper()} , {get_device_name()} | OpenVINO**
|
| 123 |
""",
|
| 124 |
elem_id="intro",
|
| 125 |
)
|
|
|
|
| 148 |
with gr.Accordion("Advanced options", open=False):
|
| 149 |
steps = gr.Slider(
|
| 150 |
label="Steps",
|
| 151 |
+
value=1,
|
| 152 |
minimum=1,
|
| 153 |
+
maximum=3,
|
| 154 |
step=1,
|
| 155 |
)
|
| 156 |
seed = gr.Slider(
|