jozzy commited on
Commit
63d6432
1 Parent(s): d2a4368

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def talk2file(index_name, text):
111
  init_pinecone()
112
  embeddings = OpenAIEmbeddings(openai_api_key=os.environ['OPENAI_API_KEY'])
113
  docsearch = Pinecone.from_existing_index(index_name, embeddings)
114
- docs = docsearch.similarity_search(prompt)
115
 
116
 
117
  prompt = text + ", based on the following text: \n\n" + docs[0].page_content
 
111
  init_pinecone()
112
  embeddings = OpenAIEmbeddings(openai_api_key=os.environ['OPENAI_API_KEY'])
113
  docsearch = Pinecone.from_existing_index(index_name, embeddings)
114
+ docs = docsearch.similarity_search(text)
115
 
116
 
117
  prompt = text + ", based on the following text: \n\n" + docs[0].page_content