v3.5.1 Hotfix

pull/279/head
BlafKing 2024-03-27 15:37:15 +01:00
parent b39a2c2128
commit 5ec449cc8b
No known key found for this signature in database
GPG Key ID: 862BBCA1D265AEFF
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,5 @@
from modules.shared import opts
do_debug_print = getattr(opts, "use_LORA", False)
def init():
import warnings
from urllib3.exceptions import InsecureRequestWarning
@ -24,4 +26,8 @@ def init():
_print = print
def print(print_message):
_print(f'\033[96mCivitAI Browser+\033[0m: {print_message}')
_print(f'\033[96mCivitAI Browser+\033[0m: {print_message}')
def debug_print(print_message):
if do_debug_print:
_print(f'\033[96m[DEBUG] CivitAI Browser+\033[0m: {print_message}')