Update get_token_counter.py

pull/366/head
ねおん 2025-11-10 02:44:22 +09:00 committed by GitHub
parent 8bf3dbad47
commit 0aa3c04de4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
from modules import script_callbacks, extra_networks, prompt_parser, sd_models
from modules.sd_hijack import model_hijack
from functools import partial, reduce
def get_token_counter(text, steps):
# Check if the model is fully loaded to prevent TypeError during model switching