INNER CODE UNIT · Python

CustomAppCreator

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

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

    def app(self):
        return self.create

    def workers(self):
        return None  # Custom config does not support multi-process mode

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…