Spaces:
Sleeping
Sleeping
Download server/app.py from MalharOrganization/RL-Doc-Parser: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/MalharOrganization/RL-Doc-Parser/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/MalharOrganization/RL-Doc-Parser/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/MalharOrganization/RL-Doc-Parser/resolve/main/server/app.py
349 Bytes
| """Server entrypoint required by multi-mode validator.""" | |
| import os | |
| import uvicorn | |
| from root.server import app | |
| def main() -> None: | |
| """Run the FastAPI app with validator-friendly defaults.""" | |
| port = int(os.environ.get("PORT", "7860")) | |
| uvicorn.run("server.app:app", host="0.0.0.0", port=port) | |
| if __name__ == "__main__": | |
| main() | |