Spaces:
Sleeping
Sleeping
AjiNiktech
commited on
Commit
•
123feff
1
Parent(s):
65966a3
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ if "OPENAI_API_KEY" in os.environ:
|
|
34 |
chat = ChatOpenAI(model="gpt-3.5-turbo-1106", temperature=0.2)
|
35 |
|
36 |
loader1 = WebBaseLoader("https://www.tbankltd.com/")
|
37 |
-
|
38 |
data1 = loader1.load()
|
39 |
-
|
40 |
-
data= data1
|
41 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
42 |
all_splits = text_splitter.split_documents(data)
|
43 |
vectorstore = Chroma.from_documents(documents=all_splits, embedding=OpenAIEmbeddings())
|
|
|
34 |
chat = ChatOpenAI(model="gpt-3.5-turbo-1106", temperature=0.2)
|
35 |
|
36 |
loader1 = WebBaseLoader("https://www.tbankltd.com/")
|
37 |
+
loader2 = PyPDFLoader("Tbank resources.pdf")
|
38 |
data1 = loader1.load()
|
39 |
+
data2 = loader2.load()
|
40 |
+
data= data1 + data2
|
41 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
42 |
all_splits = text_splitter.split_documents(data)
|
43 |
vectorstore = Chroma.from_documents(documents=all_splits, embedding=OpenAIEmbeddings())
|