Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -24,7 +24,7 @@ def infer_endpoint(data: dict):
|
|
24 |
# Route to render and present the index.html file
|
25 |
@app.get("/", response_class=HTMLResponse)
|
26 |
async def index(request: Request):
|
27 |
-
return FileResponse(
|
28 |
|
29 |
# Serve the static files
|
30 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
|
|
24 |
# Route to render and present the index.html file
|
25 |
@app.get("/", response_class=HTMLResponse)
|
26 |
async def index(request: Request):
|
27 |
+
return FileResponse("/app/static/index.html")
|
28 |
|
29 |
# Serve the static files
|
30 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|