This commit is contained in:
oobabooga 2025-01-29 14:00:59 -08:00
parent b7c17727b0
commit f01cc079b9
2 changed files with 3 additions and 2 deletions

View File

@ -30,11 +30,12 @@ from modules.text_generation import (
)
from modules.utils import delete_file, get_available_characters, save_file
def strftime_now(format):
return datetime.now().strftime(format)
jinja_env = ImmutableSandboxedEnvironment(trim_blocks=True, lstrip_blocks=True)
jinja_env = ImmutableSandboxedEnvironment(trim_blocks=True, lstrip_blocks=True)
jinja_env.globals["strftime_now"] = strftime_now