parserPDF / globals.py
semmyk's picture
baseline08_beta0.2.1_30Sept25: fix oauth_token. Marker converter now initialised with/out log in. - 'pre' load models #UX. Introduce Global sigleton (constructor). - update README
653f79c
raw
history blame
433 Bytes
# opted for sigleton as opposed to global variable
# Create a singleton object to hold all shared states
# This ensures that only one instance of the Config class is ever created
class Config:
""" Single model_dict use across the app"""
def __init__(self):
self.model_dict = {}
# Create a single, shared instance of the Config class
# Other modules will import and use this instance.
config_load_models = Config()