Spaces:
Runtime error
Runtime error
| import dash_bootstrap_components as dbc | |
| from dash import Dash | |
| import src.callbacks as callbacks # noqa | |
| from src.core.auth import AdvancedAuth | |
| from src.layout.horizontal import Layout | |
| import dash_mantine_components as dmc | |
| def init_app(): | |
| app = Dash( | |
| name=__name__, | |
| meta_tags=[ | |
| { | |
| "name": "viewport", | |
| "content": "width=device-width, initial-scale=1", | |
| } | |
| ], | |
| use_pages=True, | |
| external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.BOOTSTRAP], | |
| pages_folder="src/pages", | |
| external_scripts=[ | |
| { | |
| "src": "https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.0/html2canvas.min.js" | |
| }, | |
| { | |
| "src": "https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js" | |
| }, | |
| ], | |
| suppress_callback_exceptions=True, | |
| ) | |
| # Set the app title | |
| app.title = "Store Copilot" | |
| # Set the layout | |
| app.layout = Layout().render() | |
| # Set the server | |
| server = app.server | |
| return app, server | |
| app, server = init_app() | |
| if __name__ == "__main__": | |
| app.run_server(debug=True, port=3005) | |