Module import and favicon
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Guillem Borrell 2024-06-11 17:49:05 +02:00
parent 6d6ec72336
commit 34245ed004
3 changed files with 9 additions and 1 deletions

View file

@ -7,6 +7,7 @@ s3fs
aiofiles
duckdb
polars
pyarrow
pyjwt[crypto]
python-multipart
authlib

View file

@ -122,6 +122,7 @@ numpy==1.26.4
# via
# langchain
# langchain-community
# pyarrow
openai==1.33.0
orjson==3.10.4
# via
@ -132,6 +133,7 @@ packaging==23.2
# langchain-core
# marshmallow
polars==0.20.31
pyarrow==16.1.0
pycparser==2.22
# via cffi
pydantic==2.7.3

View file

@ -2,7 +2,7 @@ import json
from pathlib import Path
from fastapi import FastAPI
from fastapi.responses import HTMLResponse, RedirectResponse
from fastapi.responses import HTMLResponse, RedirectResponse, FileResponse
from fastapi.staticfiles import StaticFiles
from starlette.middleware.sessions import SessionMiddleware
from starlette.requests import Request
@ -29,6 +29,11 @@ async def homepage(request: Request):
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(sessions.router)
app.include_router(files.router)