feat: xử lí track/clip với AI

This commit is contained in:
2026-07-20 15:36:28 +07:00
parent 2a44b81cf5
commit 9e936144e1
4 changed files with 577 additions and 103 deletions
+9
View File
@@ -58,3 +58,12 @@ async def get_index():
return HTMLResponse(content=f"<h1>SonicForge Studio: index.html not found at {index_path}</h1>", status_code=404)
with open(index_path, "r", encoding="utf-8") as file:
return HTMLResponse(content=file.read(), status_code=200)
@app.get("/favicon.svg")
async def get_favicon():
import os
favicon_path = os.path.join(settings.TEMPLATES_DIR, "favicon.svg")
if os.path.exists(favicon_path):
from fastapi.responses import FileResponse
return FileResponse(favicon_path, media_type="image/svg+xml")
return HTMLResponse(content="", status_code=404)