| import os | |
| import sys | |
| # Add project root to path for imports | |
| sys.path.append(os.path.abspath(os.path.dirname(__file__))) | |
| # Import the app from src/ui/app.py | |
| from src.ui.app import app | |
| # Launch the app without sharing (Hugging Face Spaces will handle the hosting) | |
| if __name__ == "__main__": | |
| # Ensure directories exist | |
| os.makedirs("results", exist_ok=True) | |
| os.makedirs("data", exist_ok=True) | |
| # Launch the app without sharing (HF Spaces will handle this) | |
| app.launch() |