~Lightfury~
Mmarimo
•Created by Akshay on 7/3/2024 in #help-support
Deployment
how to convert the fastapi to flask?
11 replies
Mmarimo
•Created by Akshay on 7/3/2024 in #help-support
Deployment
import marimo
from fastapi import FastAPI
Create a marimo asgi app
server = (
marimo.create_asgi_app()
.with_app(path="", root="./dashboard.py")
)
Create a FastAPI app
app = FastAPI()
app.mount("/", server.build())
Run the server
if name == "main":
import uvicorn
uvicorn.run(app, host="localhost", port=8000)
11 replies
Mmarimo
•Created by Akshay on 7/3/2024 in #help-support
Deployment
but I need to run it via flask
11 replies
Mmarimo
•Created by Akshay on 7/3/2024 in #help-support
Deployment
I read the doc. the fask api works fine
11 replies