| """ | |
| Hugging Face Spaces wrapper for AI Messaging System Visualization Tool | |
| This wrapper imports and runs the main app from the visualization folder. | |
| """ | |
| import sys | |
| from pathlib import Path | |
| # Add the visualization directory to Python path | |
| visualization_dir = Path(__file__).parent / "visualization" | |
| sys.path.insert(0, str(visualization_dir)) | |
| sys.path.insert(0, str(Path(__file__).parent)) | |
| # Change to visualization directory context for relative imports | |
| import os | |
| os.chdir(visualization_dir) | |
| # Import and run the main app | |
| from visualization import app | |