Spaces:
Running
Running
Download dashboard_app.py from dvarfe/IQA-Interpretation: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/dvarfe/IQA-Interpretation/resolve/main/dashboard_app.py
- Command line
-
hf download hf://spaces/dvarfe/IQA-Interpretation/dashboard_app.py
-
curl -L -o dashboard_app.py https://huggingface.co/spaces/dvarfe/IQA-Interpretation/resolve/main/dashboard_app.py
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) | |