Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -508,7 +508,6 @@ def page3():
|
|
| 508 |
if "documents_added" not in st.session_state:
|
| 509 |
collection.add(
|
| 510 |
documents=[pdf_text],
|
| 511 |
-
metadatas=[{"source": pdf_path3}],
|
| 512 |
ids=[("Kosten_Strukturdaten0602204")]
|
| 513 |
)
|
| 514 |
st.session_state["documents_added"] = True
|
|
@@ -523,8 +522,7 @@ def page3():
|
|
| 523 |
full_query = ask_bot(query)
|
| 524 |
st.session_state['chat_history_page3'].append(("User", query, "new"))
|
| 525 |
|
| 526 |
-
|
| 527 |
-
st.text("Querying CromA collection...") # Diagnostic print
|
| 528 |
# Query the CromA collection
|
| 529 |
results = collection.query(
|
| 530 |
query_texts=[full_query],
|
|
|
|
| 508 |
if "documents_added" not in st.session_state:
|
| 509 |
collection.add(
|
| 510 |
documents=[pdf_text],
|
|
|
|
| 511 |
ids=[("Kosten_Strukturdaten0602204")]
|
| 512 |
)
|
| 513 |
st.session_state["documents_added"] = True
|
|
|
|
| 522 |
full_query = ask_bot(query)
|
| 523 |
st.session_state['chat_history_page3'].append(("User", query, "new"))
|
| 524 |
|
| 525 |
+
|
|
|
|
| 526 |
# Query the CromA collection
|
| 527 |
results = collection.query(
|
| 528 |
query_texts=[full_query],
|