refac: convert str var to f-string

This commit is contained in:
Timothy J. Baek 2024-01-22 01:47:07 -08:00
parent 5b26d2a686
commit d2c5f3d591
4 changed files with 14 additions and 9 deletions

View file

@ -14,7 +14,7 @@ from apps.openai.main import app as openai_app
from apps.web.main import app as webui_app
from apps.rag.main import app as rag_app
from config import ENV, WEB_DIR
from config import ENV, FRONTEND_BUILD_DIR
class SPAStaticFiles(StaticFiles):
@ -58,4 +58,8 @@ app.mount("/openai/api", openai_app)
app.mount("/rag/api/v1", rag_app)
app.mount("/", SPAStaticFiles(directory=str(WEB_DIR), html=True), name="spa-static-files")
app.mount(
"/",
SPAStaticFiles(directory=str(FRONTEND_BUILD_DIR), html=True),
name="spa-static-files",
)