CodeSAAT commited on
Commit
3ba0582
·
verified ·
1 Parent(s): af4ec47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,12 +35,12 @@ detector = VocalGuardDetector()
35
 
36
  # Serve frontend static files
37
  frontend_path = os.path.join(os.path.dirname(__file__), "..")
38
- app.mount("/static", StaticFiles(directory=frontend_path), name="static")
39
 
40
 
41
  @app.get("/")
42
  async def root():
43
- return FileResponse(os.path.join(frontend_path, "index.html"))
44
 
45
 
46
  @app.get("/health")
 
35
 
36
  # Serve frontend static files
37
  frontend_path = os.path.join(os.path.dirname(__file__), "..")
38
+ app.mount("/static", StaticFiles(directory=os.path.dirname(__file__)), name="static")
39
 
40
 
41
  @app.get("/")
42
  async def root():
43
+ return FileResponse(os.path.join(os.path.dirname(__file__), "index.html"))
44
 
45
 
46
  @app.get("/health")