Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ import textwrap
|
|
18 |
import sys
|
19 |
import torch
|
20 |
os.environ['HuggingFaceHub_API_Token']= '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'
|
21 |
-
loader = UnstructuredFileLoader('
|
22 |
documents = loader.load()
|
23 |
text_splitter=CharacterTextSplitter(separator='\n',chunk_size=1500,chunk_overlap=300)
|
24 |
text_chunks=text_splitter.split_documents(documents)
|
|
|
18 |
import sys
|
19 |
import torch
|
20 |
os.environ['HuggingFaceHub_API_Token']= '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'
|
21 |
+
loader = UnstructuredFileLoader('Highway Traffic Act, R.S.O. 1990, c. H.8.pdf')
|
22 |
documents = loader.load()
|
23 |
text_splitter=CharacterTextSplitter(separator='\n',chunk_size=1500,chunk_overlap=300)
|
24 |
text_chunks=text_splitter.split_documents(documents)
|