Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
```
  • Loading branch information
Dicklesworthstone committed Aug 11, 2023
1 parent 874922e commit 9c2fbb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
3 changes: 2 additions & 1 deletion llama_2_embeddings_fastapi_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from fastapi.responses import JSONResponse, FileResponse, Response
from langchain.embeddings import LlamaCppEmbeddings
from sklearn.metrics.pairwise import cosine_similarity
from sqlalchemy import select, inspect
from sqlalchemy import select
from sqlalchemy import text as sql_text
from sqlalchemy.exc import SQLAlchemyError, OperationalError, IntegrityError
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
Expand Down Expand Up @@ -71,6 +71,7 @@ def rotator(source, dest):
logger.addHandler(sh)
logger = logging.getLogger(__name__)
logging.getLogger('sqlalchemy.engine').setLevel(logging.WARNING)
configured_logger = logger

# Global variables
use_hardcoded_security_token = 0
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.ruff]
ignore = ["E501"]

0 comments on commit 9c2fbb7

Please sign in to comment.