File size: 381 Bytes
cb0ba0f
 
a4a5357
cb0ba0f
 
 
 
f219aea
cb0ba0f
 
 
3175df2
8d8c141
 
f219aea
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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="/")