Empereur-Pirate commited on
Commit
4b63774
·
verified ·
1 Parent(s): 6058f23

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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(await request.url.file("/app/static/index.html"))
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")