Spaces:
Runtime error
Runtime error
Download appDeepseekCoder.py from shivanis14/Education-Tools: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/shivanis14/Education-Tools/resolve/main/appDeepseekCoder.py
- Command line
-
hf download hf://spaces/shivanis14/Education-Tools/appDeepseekCoder.py
-
curl -L -o appDeepseekCoder.py https://huggingface.co/spaces/shivanis14/Education-Tools/resolve/main/appDeepseekCoder.py
381 Bytes
| from fastapi import FastAPI | |
| from chainlit.utils import mount_chainlit | |
| import uvicorn | |
| app = FastAPI() | |
| def read_main(): | |
| return {"message": "Hello World from main app"} | |
| mount_chainlit(app=app, target="app.py", path="") | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |
| #uvicorn.run(app, host="0.0.0.0", port=7860, root_path="/") | |