Spaces:
Runtime error
Runtime error
Update app.py
Browse files36 unmodified lines373839404041424336 unmodified lines documents = text_splitter.split_text(text=read_pdf())
# Vectorize the documents and create vectorstore embeddings = OpenAIEmbeddings() embeddings = OpenAIEmbeddings(openai_api_key='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') vectorstore = FAISS.from_texts(documents, embedding=embeddings)
st.session_state.processed_data = {app.py+1-1