Update app.py
Browse files
app.py
CHANGED
@@ -70,10 +70,8 @@ class CFG:
|
|
70 |
Embeddings_path = './embeddings/input'
|
71 |
Output_folder = './ml-papers-vector'
|
72 |
|
73 |
-
|
74 |
-
loader = DirectoryLoader(CFG.PDFs_path, glob="./*.pdf", loader_cls=PyPDFLoader)
|
75 |
|
76 |
-
@spaces.GPU(duration=120)
|
77 |
documents = loader.load()
|
78 |
|
79 |
@spaces.GPU(duration=120)
|
|
|
70 |
Embeddings_path = './embeddings/input'
|
71 |
Output_folder = './ml-papers-vector'
|
72 |
|
73 |
+
loader = DirectoryLoader(CFG.PDFs_path, glob="*.pdf", loader_cls=PyPDFLoader)
|
|
|
74 |
|
|
|
75 |
documents = loader.load()
|
76 |
|
77 |
@spaces.GPU(duration=120)
|