Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -525,13 +525,13 @@ def page3():
|
|
| 525 |
|
| 526 |
# Initialize CromA client and collection
|
| 527 |
chroma_client = chromadb.Client()
|
| 528 |
-
collection = chroma_client.create_collection(name="
|
| 529 |
|
| 530 |
# Add the extracted text from PDF to the Chroma collection
|
| 531 |
collection.add(
|
| 532 |
documents=[pdf_text],
|
| 533 |
metadatas=[{"source": pdf_path3}], # Add any relevant metadata for your document
|
| 534 |
-
ids=[("
|
| 535 |
)
|
| 536 |
|
| 537 |
display_chat_history(st.session_state['chat_history_page3'])
|
|
|
|
| 525 |
|
| 526 |
# Initialize CromA client and collection
|
| 527 |
chroma_client = chromadb.Client()
|
| 528 |
+
collection = chroma_client.create_collection(name="Kosten_Strukturdaten0602204")
|
| 529 |
|
| 530 |
# Add the extracted text from PDF to the Chroma collection
|
| 531 |
collection.add(
|
| 532 |
documents=[pdf_text],
|
| 533 |
metadatas=[{"source": pdf_path3}], # Add any relevant metadata for your document
|
| 534 |
+
ids=[("Kosten_Strukturdaten0602204")]
|
| 535 |
)
|
| 536 |
|
| 537 |
display_chat_history(st.session_state['chat_history_page3'])
|