Spaces:
Sleeping
Sleeping
Download server/app.py from Arnab0513/customer-support-api: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/Arnab0513/customer-support-api/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/Arnab0513/customer-support-api/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Arnab0513/customer-support-api/resolve/main/server/app.py
513 Bytes
| """ | |
| server/app.py — OpenEnv multi-mode deployment entry point. | |
| Required by the OpenEnv standard for server-mode deployment. | |
| """ | |
| import sys | |
| import os | |
| # Ensure root directory is importable | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from api import app # noqa: F401 | |
| def main(): | |
| """Server entry point called by 'server' script in pyproject.toml.""" | |
| import uvicorn | |
| uvicorn.run("server.app:app", host="0.0.0.0", port=7860) | |
| if __name__ == "__main__": | |
| main() | |