Spaces:
Running
Running
Download src/frontend/webui/errors.py from rupeshs/fastsdcpu: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/spaces/rupeshs/fastsdcpu/resolve/main/src/frontend/webui/errors.py
- Command line
-
hf download hf://spaces/rupeshs/fastsdcpu/src/frontend/webui/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/rupeshs/fastsdcpu/resolve/main/src/frontend/webui/errors.py
265 Bytes
| import gradio as gr | |
| def show_error(message: str) -> None: | |
| if "num_inference_steps != 2" in message: | |
| gr.Warning( | |
| "Please set the generation setting inference steps to 2 for SANA sprint model" | |
| ) | |
| else: | |
| gr.Warning(message) | |