webui: logging changes

This commit is contained in:
cmdr2
2025-06-27 15:20:30 +05:30
parent a7f0568bff
commit 2c359e0e39
2 changed files with 4 additions and 2 deletions

View File

@ -349,7 +349,9 @@ def get_env():
"PIP_INSTALLER_LOCATION": [], # [f"{dir}/python/get-pip.py"], "PIP_INSTALLER_LOCATION": [], # [f"{dir}/python/get-pip.py"],
"TRANSFORMERS_CACHE": [f"{dir}/transformers-cache"], "TRANSFORMERS_CACHE": [f"{dir}/transformers-cache"],
"HF_HUB_DISABLE_SYMLINKS_WARNING": ["true"], "HF_HUB_DISABLE_SYMLINKS_WARNING": ["true"],
"COMMANDLINE_ARGS": [f'--api --models-dir "{models_dir}" {model_path_args} --skip-torch-cuda-test'], "COMMANDLINE_ARGS": [
f'--api --models-dir "{models_dir}" {model_path_args} --skip-torch-cuda-test --disable-gpu-warning'
],
"SKIP_VENV": ["1"], "SKIP_VENV": ["1"],
"SD_WEBUI_RESTARTING": ["1"], "SD_WEBUI_RESTARTING": ["1"],
} }

View File

@ -253,7 +253,7 @@ def generate_images(
res = res.json() res = res.json()
else: else:
raise Exception( raise Exception(
"The engine failed while generating this image. Please check the logs in the command-line window for more details." f"HTTP Status {res.status_code}. The engine failed while generating this image. Please check the logs in the command-line window for more details."
) )
import json import json