GIGAParviz commited on
Commit
e9af330
·
verified ·
1 Parent(s): 59bf8b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -14,8 +14,7 @@ logger = logging.getLogger(__name__)
14
  client = Groq(api_key="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")
15
  embedding_model = HuggingFaceEmbeddings(model_name="heydariAI/persian-embeddings")
16
 
17
- # Initialize in-memory vector store for chat history
18
- memory = InMemoryVectorStore()
19
 
20
  def process_pdf_with_langchain(pdf_path):
21
  try:
 
14
  client = Groq(api_key="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")
15
  embedding_model = HuggingFaceEmbeddings(model_name="heydariAI/persian-embeddings")
16
 
17
+ memory = InMemoryVectorStore(embedding_model)
 
18
 
19
  def process_pdf_with_langchain(pdf_path):
20
  try: