thomasgauthier commited on
Commit
3f38057
1 Parent(s): 4cae664
Files changed (1) hide show
  1. main.py +7 -4
main.py CHANGED
@@ -379,9 +379,12 @@ async def get_random_sample(dataset_name: str = Query(..., alias="dataset-name")
379
 
380
 
381
 
382
- # @app.on_event("startup")
383
- # async def startup_event():
384
- # await setup_database()
385
  @app.get("/")
386
  def index() -> FileResponse:
387
- return FileResponse(path="/app/static/index.html", media_type="text/html")
 
 
 
 
379
 
380
 
381
 
382
+ # # @app.on_event("startup")
383
+ # # async def startup_event():
384
+ # # await setup_database()
385
  @app.get("/")
386
  def index() -> FileResponse:
387
+ return FileResponse(path="static/index.html", media_type="text/html")
388
+
389
+
390
+ app.mount("/", StaticFiles(directory="static"), name="static")