Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 39 |
|
| 40 |
|
| 41 |
@app.get("/")
|
| 42 |
async def root():
|
| 43 |
-
return FileResponse(os.path.join(
|
| 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")
|