mirror of
https://github.com/StanGirard/quivr.git
synced 2024-09-11 13:15:41 +03:00
🚑 fix on fetch user & csv upload (#438)
* 🚑 fix on fetch user * 🚑 fix imports for csv
This commit is contained in:
parent
a13219c73f
commit
81321ea615
@ -1,4 +1,4 @@
|
||||
from langchain.document_loaders.csv_loader import CSVLoader
|
||||
from langchain.document_loaders import CSVLoader
|
||||
from models.files import File
|
||||
from models.settings import CommonsDep
|
||||
|
||||
|
@ -39,7 +39,7 @@ async def get_user_endpoint(request: Request, current_user: User = Depends(get_c
|
||||
default_brain = get_default_user_brain(current_user)
|
||||
|
||||
if default_brain:
|
||||
defaul_brain_size = Brain(id=default_brain['id']).size
|
||||
defaul_brain_size = Brain(id=default_brain['id']).brain_size
|
||||
else:
|
||||
defaul_brain_size = 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user