Download app.py from Nerdur/Scope3: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/Nerdur/Scope3/resolve/main/app.py
- Command line
-
hf download hf://spaces/Nerdur/Scope3/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Nerdur/Scope3/resolve/main/app.py
398 Bytes
| """ | |
| 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") | |