INNER CODE UNIT · Python

PreAppCreator

derisk-ai/OpenDerisk · packages/derisk-app/src/derisk_app/app.py:623

class PreAppCreator(AppCreator):
    config_file: str = CONFIG_ROOT_PATH + "/derisk-prepub.toml"


class GrayAppCreator(AppCreator):
    config_file: str = CONFIG_ROOT_PATH + "/derisk-gray.toml"


class TestAppCreator(AppCreator):
    config_file: str = CONFIG_ROOT_PATH + "/derisk-test.toml"


class CustomAppCreator(AppCreator):
    def __init__(self, config_file=None):
        super().__init__(config_file)
        if config_file:
            # Dynamically set the class attribute so that the create class method can get the correct configuration file
            CustomAppCreator.config_file = config_file

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…