Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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:
|