IQA-Interpretation / dashboard_app.py
dvarfe's picture
move to plotly backend
5109422
Raw History Blame Contribute Delete
590 Bytes
from __future__ import annotations
import os
import sys
from pathlib import Path
from dash import Dash, html, page_container
ROOT = Path(__file__).resolve().parent
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
app = Dash(
__name__,
use_pages=True,
pages_folder="pages",
suppress_callback_exceptions=True,
title="xIQA Dash Browser",
)
server = app.server
app.layout = html.Div([page_container])
if __name__ == "__main__":
port = int(os.environ.get("DASH_PORT", "8050"))
app.run(debug=False, host="0.0.0.0", port=port, use_reloader=False)