Skip to content

Commit

Permalink
Moves dep for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
CollectiveUnicorn committed May 24, 2024
1 parent fc39ff1 commit fe9affc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/leapfrogai_api/backend/rag/document_loader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Load a file and split it into chunks."""

from filemime import filemime

obj = filemime()
import os
from langchain_community.document_loaders import (
CSVLoader,
Expand All @@ -18,6 +16,7 @@
from leapfrogai_api.utils import get_model_config
from leapfrogai_api.backend.grpc_client import create_embeddings

obj = filemime()

HANDLERS = {
"application/pdf": PyPDFLoader,
Expand Down

0 comments on commit fe9affc

Please sign in to comment.