""" AgentScope AI — Hugging Face Spaces entry point Run with: python app.py Or HF Spaces will auto-detect this file. """ import os import sys # Add backend to path sys.path.insert(0, os.path.dirname(__file__)) from backend.main import app import uvicorn if __name__ == "__main__": port = int(os.environ.get("PORT", 7860)) uvicorn.run(app, host="0.0.0.0", port=port, log_level="info")