This commit is contained in:
parent
6d6ec72336
commit
34245ed004
|
@ -7,6 +7,7 @@ s3fs
|
||||||
aiofiles
|
aiofiles
|
||||||
duckdb
|
duckdb
|
||||||
polars
|
polars
|
||||||
|
pyarrow
|
||||||
pyjwt[crypto]
|
pyjwt[crypto]
|
||||||
python-multipart
|
python-multipart
|
||||||
authlib
|
authlib
|
||||||
|
|
|
@ -122,6 +122,7 @@ numpy==1.26.4
|
||||||
# via
|
# via
|
||||||
# langchain
|
# langchain
|
||||||
# langchain-community
|
# langchain-community
|
||||||
|
# pyarrow
|
||||||
openai==1.33.0
|
openai==1.33.0
|
||||||
orjson==3.10.4
|
orjson==3.10.4
|
||||||
# via
|
# via
|
||||||
|
@ -132,6 +133,7 @@ packaging==23.2
|
||||||
# langchain-core
|
# langchain-core
|
||||||
# marshmallow
|
# marshmallow
|
||||||
polars==0.20.31
|
polars==0.20.31
|
||||||
|
pyarrow==16.1.0
|
||||||
pycparser==2.22
|
pycparser==2.22
|
||||||
# via cffi
|
# via cffi
|
||||||
pydantic==2.7.3
|
pydantic==2.7.3
|
||||||
|
|
|
@ -2,7 +2,7 @@ import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.responses import HTMLResponse, RedirectResponse
|
from fastapi.responses import HTMLResponse, RedirectResponse, FileResponse
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from starlette.middleware.sessions import SessionMiddleware
|
from starlette.middleware.sessions import SessionMiddleware
|
||||||
from starlette.requests import Request
|
from starlette.requests import Request
|
||||||
|
@ -29,6 +29,11 @@ async def homepage(request: Request):
|
||||||
return HTMLResponse(f.read())
|
return HTMLResponse(f.read())
|
||||||
|
|
||||||
|
|
||||||
|
@app.get("/favicon.ico")
|
||||||
|
async def favicon():
|
||||||
|
return FileResponse(static_path / "img" / "favicon.ico")
|
||||||
|
|
||||||
|
|
||||||
app.include_router(health.router)
|
app.include_router(health.router)
|
||||||
app.include_router(sessions.router)
|
app.include_router(sessions.router)
|
||||||
app.include_router(files.router)
|
app.include_router(files.router)
|
||||||
|
|
Loading…
Reference in a new issue