# app.py from fastapi import FastAPI from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles import pathlib, os, uvicorn BASE = pathlib.Path(__file__).parent app = FastAPI() # ── 정적 파일 (JS / CSS / 이미지 / MP3) 서빙 ── app.mount("/static", StaticFiles(directory=BASE), name="static") # ── index.html 원문 ── INDEX_HTML = """