Spaces:
Runtime error
Runtime error
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| # When running `streamlit run ai_business_automation_agent/app.py`, Python's sys.path | |
| # may not include the project root, so absolute package imports can fail. | |
| PROJECT_ROOT = Path(__file__).resolve().parent.parent | |
| if str(PROJECT_ROOT) not in sys.path: | |
| sys.path.insert(0, str(PROJECT_ROOT)) | |
| from ai_business_automation_agent.ui.streamlit_dashboard import main | |
| if __name__ == "__main__": | |
| main() | |