mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-26 15:24:39 +01:00
API: Fix debug_msg truthy check for OPENEDAI_DEBUG=0
This commit is contained in:
parent
bf6fbc019d
commit
1a910574c3
|
|
@ -23,7 +23,7 @@ def float_list_to_base64(float_array: np.ndarray) -> str:
|
|||
|
||||
|
||||
def debug_msg(*args, **kwargs):
|
||||
if os.environ.get("OPENEDAI_DEBUG", 0):
|
||||
if int(os.environ.get("OPENEDAI_DEBUG", 0)):
|
||||
print(*args, **kwargs)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue