raghuram13 commited on
Commit
8fda8b5
·
1 Parent(s): 35a9915

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,8 +28,9 @@ def pdf_to_text(pdf_file, query):
28
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
29
  texts = text_splitter.split_text(text)
30
 
31
- embeddings = OpenAIEmbeddings()
32
  #vector store
 
33
  vectorstore = FAISS.from_texts(texts, embeddings)
34
 
35
  #inference
 
28
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
29
  texts = text_splitter.split_text(text)
30
 
31
+
32
  #vector store
33
+ embeddings = OpenAIEmbeddings()
34
  vectorstore = FAISS.from_texts(texts, embeddings)
35
 
36
  #inference