Education-Tools / appDeepseekCoder.py
shivanis14's picture
Update appDeepseekCoder.py
3175df2 verified
raw
history blame contribute delete
381 Bytes
from fastapi import FastAPI
from chainlit.utils import mount_chainlit
import uvicorn
app = FastAPI()
@app.get("/app")
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="/")