Spaces:
Sleeping
Sleeping
File size: 714 Bytes
678a0d5 b2e95d4 678a0d5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | from typing import Annotated, Callable, Coroutine
from fastapi.responses import HTMLResponse, RedirectResponse
import marimo
from fastapi import FastAPI, Form, Request, Response
import os
# Create a marimo asgi app
server = (
marimo.create_asgi_app()
.with_app(path="", root="./index.py")
.with_app(path="/bc", root="./bomb_calorimetry.py")
.with_app(path="/cv", root="./crystal_violet.py")
.with_app(path="/stats", root="./statistics_lab.py")
.with_app(path="/surface", root="./surface_adsorption.py")
)
# Create a FastAPI app
app = FastAPI()
app.mount("/", server.build())
# Run the server
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
|