Download patch/styles.patch from WuLing/SD-WebUI: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/WuLing/SD-WebUI/resolve/925ed3e2824536fa20b7cf2f607cd6fb182c2cc3/patch/styles.patch
- Command line
-
hf download hf://WuLing/SD-WebUI@925ed3e2824536fa20b7cf2f607cd6fb182c2cc3/patch/styles.patch
-
curl -L -o styles.patch https://huggingface.co/WuLing/SD-WebUI/resolve/925ed3e2824536fa20b7cf2f607cd6fb182c2cc3/patch/styles.patch
372 Bytes
| --- styles.py 2023-03-21 14:06:37.886175393 +0000 | |
| +++ styles_fix.py 2023-03-21 14:09:13.003901716 +0000 | |
| # Always keep a backup file around | |
| if os.path.exists(path): | |
| - shutil.move(path, path + ".bak") | |
| - shutil.move(temp_path, path) | |
| + shutil.copy2(path, path + ".bak") | |
| + shutil.copy2(temp_path, path) | |