INNER CODE UNIT · Python

task

underneathall/pinferencia · pinferencia/frontend/app.py:156

            task = st.sidebar.selectbox(**select_box_kwargs)

            # if debug mode is enabled, set the api manager to debug mode
            if st.sidebar.checkbox("Debug"):
                self.model_manager.api_manager.debug = True

            # first looking for the selected task type in custom templates,
            # then the built-in templates
            if task in self.custom_templates:
                tmpl_cls = self.custom_templates[task]
            else:
                tmpl_module = importlib.import_module(
                    f".frontend.templates.{task}",
                    package="pinferencia",
                )
                tmpl_cls = tmpl_module.Template

            # initialize the template and render

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…