from open.text.embeddings.server.app import create_app from fastapi.responses import HTMLResponse import os app = create_app() # Read the content of index.html once and store it in memory # with open("index.html", "r") as f: content = f.read() content = """