Sathyapriyaa commited on
Commit
943d293
1 Parent(s): 58cb744

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import together
 
2
 
3
  # set your API key
4
  together.api_key = "c9909567768fbf1a69fbd94c758e432f0a05a6755c32dced992ac6640a8cfd79"
@@ -27,7 +28,9 @@ from langchain.document_loaders import TextLoader
27
  from langchain.document_loaders import PyPDFLoader
28
  from langchain.document_loaders import DirectoryLoader
29
 
30
- loader = PyPDFLoader('/Production-Table - Sheet1 (2).pdf')
 
 
31
 
32
  documents = loader.load()
33
  #splitting the text into
 
1
  import together
2
+ import os
3
 
4
  # set your API key
5
  together.api_key = "c9909567768fbf1a69fbd94c758e432f0a05a6755c32dced992ac6640a8cfd79"
 
28
  from langchain.document_loaders import PyPDFLoader
29
  from langchain.document_loaders import DirectoryLoader
30
 
31
+ pdf_path = os.path.join(os.path.dirname(__file__), '/Production-Table - Sheet1 (2).pdf')
32
+
33
+ loader = PyPDFLoader(pdf_path)
34
 
35
  documents = loader.load()
36
  #splitting the text into