Hackoor commited on
Commit
faca756
1 Parent(s): efc41cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('https://huggingface.co/spaces/Hackoor/FinalModelLlama/raw/main/Highway%20Traffic%20Act%2C%20R.S.O.%201990%2C%20c.%20H.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)
 
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)