| """ |
| HuggingFace Spaces wrapper for Sabian Brand Sentiment Dashboard. |
| Delegates to visualization_brand_sentiment/app.py without modifying the underlying code. |
| """ |
| import os |
| import sys |
|
|
| |
| _root_dir = os.path.dirname(os.path.abspath(__file__)) |
| _app_dir = os.path.join(_root_dir, "visualization_brand_sentiment") |
| _app_path = os.path.join(_app_dir, "app.py") |
|
|
| |
| if _app_dir not in sys.path: |
| sys.path.insert(0, _app_dir) |
|
|
| |
| |
| __file__ = _app_path |
|
|
| |
| with open(_app_path, "r", encoding="utf-8") as _f: |
| exec(compile(_f.read(), _app_path, "exec")) |