Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 29, 2024
1 parent 0ccd984 commit 0e0101d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions context_chat_backend/controller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import time

import time

from os import getenv
from typing import Annotated
Expand All @@ -9,7 +7,6 @@
from fastapi import BackgroundTasks, Body, FastAPI, Request, UploadFile
from langchain.llms.base import LLM
from pydantic import BaseModel, FieldValidationInfo, field_validator
from datetime import datetime

from .chain import ScopeType, embed_sources, process_query, process_scoped_query
from .download import download_all_models
Expand Down Expand Up @@ -191,7 +188,7 @@ def _(userId: Annotated[str, Body()], providerKey: Annotated[str, Body()]):
return JSONResponse('Error: VectorDB delete failed, check vectordb logs for more info.', 400)

return JSONResponse('All valid sources deleted')


@app.put('/loadSources')
@enabled_guard(app)
Expand Down
2 changes: 1 addition & 1 deletion requirements_cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ zipp==3.17.0
torch==2.2.0
torchaudio==2.2.0
torchvision==0.17.0
ctransformers[cuda]==0.2.27
ctransformers[cuda]==0.2.27

0 comments on commit 0e0101d

Please sign in to comment.