Spaces:
Sleeping
Sleeping
Commit
·
3f38057
1
Parent(s):
4cae664
fiddle
Browse files
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="
|
|
|
|
|
|
|
|
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")
|