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 Apr 30, 2024
1 parent 26576a8 commit f4f09b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/jupyter_ai/document_loaders/directory.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import datetime
import hashlib
import itertools
import os
import datetime
import tarfile
from pathlib import Path
from typing import List

import dask
from langchain_community.document_loaders import PyPDFLoader
from langchain.schema import Document
from langchain.text_splitter import TextSplitter
from langchain_community.document_loaders import PyPDFLoader
Expand All @@ -16,6 +15,7 @@
# Download a single tar file from arXiv and store in a temp folder for RAG, then run learn on it.
def arxiv_to_text(id): # id is numbers after "arXiv" in arXiv:xxxx.xxxxx
import arxiv

# Get the paper from arxiv
outfile = id + datetime.datetime.now().strftime("_%Y-%m-%d-%H-%M") + ".tex"
paper = next(arxiv.Client().results(arxiv.Search(id_list=[id])))
Expand Down

0 comments on commit f4f09b9

Please sign in to comment.