Spaces:
Sleeping
Sleeping
Download server/app.py from Shivacode/rl-hackathon: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/spaces/Shivacode/rl-hackathon/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/Shivacode/rl-hackathon/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Shivacode/rl-hackathon/resolve/main/server/app.py
556 Bytes
| """ | |
| server/app.py — Root-level shim for openenv validate compatibility. | |
| The real application lives in email_triage_rl_hackathon/server/app.py. | |
| This file exists so that `openenv validate` (which checks for server/app.py | |
| at the repo root) passes when the validator clones the GitHub repo. | |
| """ | |
| import os | |
| from email_triage_rl_hackathon.server.app import app # noqa: F401 | |
| def main(host: str = "0.0.0.0", port: int = int(os.environ.get("PORT", 7860))): | |
| import uvicorn | |
| uvicorn.run(app, host=host, port=port) | |
| if __name__ == "__main__": | |
| main() | |