Spaces:
Runtime error
Runtime error
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="/") | |