Spaces:
Running
Running
| # Wrapper for HuggingFace Spaces - ALSARA | |
| # Cache bust: 1764546656 | |
| import subprocess | |
| import sys | |
| # Install dependencies at runtime | |
| print("=== Installing dependencies ===") | |
| deps = [ | |
| "anthropic>=0.34.0", | |
| "mcp>=1.21.2", | |
| "httpx>=0.25.0", | |
| "beautifulsoup4>=4.12.0", | |
| "lxml>=4.9.0", | |
| "psycopg2-binary>=2.9.0", | |
| "asyncpg>=0.29.0", | |
| "python-dotenv>=1.0.0", | |
| ] | |
| for dep in deps: | |
| print(f"Installing {dep}...") | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", dep]) | |
| print("=== Dependencies installed ===") | |
| # Now run the main app | |
| import runpy | |
| runpy.run_path("als_agent_app.py", run_name="__main__") | |