Spaces:
Running
Running
File size: 642 Bytes
97b0716 3d1ada8 97b0716 3d1ada8 97b0716 4279c44 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# 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__")
|