Spaces:
Running
Running
| """ | |
| Re-export the FastAPI app from the dataclean_env package. | |
| This file exists at server/app.py for openenv spec compliance. | |
| """ | |
| import os | |
| from dataclean_env.server.app import app # noqa: F401 | |
| __all__ = ["app"] | |
| def main(): | |
| """Entry point for openenv serve / uv run server.""" | |
| import uvicorn | |
| port = int(os.getenv("PORT", "7860")) | |
| host = os.getenv("HOST", "0.0.0.0") | |
| workers = int(os.getenv("WORKERS", "1")) | |
| uvicorn.run( | |
| "server.app:app", | |
| host=host, | |
| port=port, | |
| workers=workers, | |
| ) | |
| if __name__ == "__main__": | |
| main() | |