Spaces:
Runtime error
Runtime error
Update gen_splits.py
Browse files- gen_splits.py +2 -2
gen_splits.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
from langchain_community.document_loaders import PyPDFLoader
|
| 2 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
| 3 |
import os
|
| 4 |
-
import
|
| 5 |
|
| 6 |
def gen_splits():
|
| 7 |
-
|
| 8 |
file_paths = os.listdir('Model_TS')
|
| 9 |
new_file_paths = [os.getcwd() +"/Model_TS/"+ file for file in file_paths]
|
| 10 |
loaders = []
|
|
|
|
| 1 |
from langchain_community.document_loaders import PyPDFLoader
|
| 2 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
| 3 |
import os
|
| 4 |
+
import download_and_extract_zip
|
| 5 |
|
| 6 |
def gen_splits():
|
| 7 |
+
download_and_extract_zip.download_and_extract_zip()
|
| 8 |
file_paths = os.listdir('Model_TS')
|
| 9 |
new_file_paths = [os.getcwd() +"/Model_TS/"+ file for file in file_paths]
|
| 10 |
loaders = []
|