Download server/app.py from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/server/app.py
245 Bytes
| """ASGI entrypoint wrapper for OpenEnv validator compatibility.""" | |
| from app import app | |
| def main() -> None: | |
| import uvicorn | |
| uvicorn.run("server.app:app", host="0.0.0.0", port=7860, reload=False) | |
| if __name__ == "__main__": | |
| main() | |