diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-06-27 08:25:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 08:25:55 +0000 |
commit | 1bf01b73f478fd98d670fc3e44ffd7c71e531b0a (patch) | |
tree | 548b90c6a385897407209bd0b0bf0d4c7d54303d /modules/api/api.py | |
parent | d06af4e517865277d0521642c2c5513af9afd76f (diff) | |
parent | ba70a220e3176153ba2a559acb9e5aa692dce7ca (diff) | |
download | stable-diffusion-webui-gfx803-1bf01b73f478fd98d670fc3e44ffd7c71e531b0a.tar.gz stable-diffusion-webui-gfx803-1bf01b73f478fd98d670fc3e44ffd7c71e531b0a.tar.bz2 stable-diffusion-webui-gfx803-1bf01b73f478fd98d670fc3e44ffd7c71e531b0a.zip |
Merge pull request #11046 from akx/ded-code
Remove a bunch of unused/vestigial code
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 1d4aeff5..279c384a 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -32,13 +32,6 @@ import piexif import piexif.helper -def upscaler_to_index(name: str): - try: - return [x.name.lower() for x in shared.sd_upscalers].index(name.lower()) - except Exception as e: - raise HTTPException(status_code=400, detail=f"Invalid upscaler, needs to be one of these: {' , '.join([x.name for x in shared.sd_upscalers])}") from e - - def script_name_to_index(name, scripts): try: return [script.title().lower() for script in scripts].index(name.lower()) |