"deployment/vscode:/vscode.git/clone" did not exist on "8353c1d329dbf34f611d24926d9c1421236e3357"
Commit a94e4161 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: file content type issue

parent 79d0932a
......@@ -388,7 +388,9 @@ def scan_docs_dir(user=Depends(get_admin_user)):
collection_name = calculate_sha256(f)[:63]
f.close()
loader, known_type = get_loader(filename, file_content_type, str(path))
loader, known_type = get_loader(
filename, file_content_type[0], str(path)
)
data = loader.load()
result = store_data_in_vector_db(data, collection_name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment