File size: 398 Bytes
fb8dc11 5aea7f1 fb8dc11 5aea7f1 fb8dc11 5aea7f1 fb8dc11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """
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")
|