Spaces:
Build error
Build error
Update app.py
Browse files34 unmodified lines35363738394041424334 unmodified linesvectorstores = FAISS.from_documents(doc_chunks, embeddings)return vectorstores# Function to extract mentality traits (viewpoints, reasoning patterns, etc.)def extract_mentality_traits(documents):text = "\n".join(documents)blob = TextBlob(text)# Analyze tone34 unmodified lines35363738394041424334 unmodified linesvectorstores = FAISS.from_documents(doc_chunks, embeddings)return vectorstoresdef extract_mentality_traits(documents):# Extract the text from each documenttext = "\n".join([doc.page_content for doc in documents])blob = TextBlob(text)# Analyze tone
app.py+2-2