Download server/app.py from aaloksan/kernel: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/spaces/aaloksan/kernel/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/aaloksan/kernel/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/aaloksan/kernel/resolve/main/server/app.py
194 Bytes
| import os | |
| import uvicorn | |
| from env_server import app | |
| def main(): | |
| uvicorn.run("server.app:app", host="0.0.0.0", port=int(os.getenv("PORT", "7860"))) | |
| if __name__ == "__main__": | |
| main() | |