Spaces:
No application file
No application file
Download server/app.py from Pankaj10346/Openenv-Hackathon: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/Pankaj10346/Openenv-Hackathon/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/Pankaj10346/Openenv-Hackathon/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Pankaj10346/Openenv-Hackathon/resolve/main/server/app.py
504 Bytes
| """ | |
| Shim for OpenEnv layout checks (``server/app.py`` is required when there is no | |
| root ``Dockerfile``). The ASGI application is defined in ``app.py`` at the env root. | |
| """ | |
| from __future__ import annotations | |
| try: | |
| from legal_contract_env.app import app, main as _root_main | |
| except ImportError: | |
| from app import app, main as _root_main | |
| __all__ = ["app", "main"] | |
| def main() -> None: | |
| """Uvicorn entry; delegates to root ``app.main``.""" | |
| _root_main() | |
| if __name__ == "__main__": | |
| main() | |