Spaces:
Runtime error
Runtime error
File size: 307 Bytes
cb0ba0f 8d8c141 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from fastapi import FastAPI
from chainlit.utils import mount_chainlit
app = FastAPI()
@app.get("/app")
def read_main():
return {"message": "Hello World from main app"}
mount_chainlit(app=app, target="app.py", path="/quiz")
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=7860)
|