jonasge97 commited on
Commit
8a7a35c
·
1 Parent(s): c2dfc9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -105,11 +105,7 @@ def main():
105
  text_chunks = get_text_chunks(pdf_text)
106
  create_vectorstore_and_store(text_chunks)
107
 
108
- retriever = get_vectorstore().as_retriever()
109
- retrieved_docs = retriever.invoke(user_question)
110
- if user_question:
111
- st.text(retrieved_docs[0].page_content)
112
- # bei eingehendem PDF
113
 
114
  similarity_score = calculate_similarity(user_question, pdf_text)
115
 
 
105
  text_chunks = get_text_chunks(pdf_text)
106
  create_vectorstore_and_store(text_chunks)
107
 
108
+
 
 
 
 
109
 
110
  similarity_score = calculate_similarity(user_question, pdf_text)
111