Skip to content

Commit

Permalink
improving vector search
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramyrahmeni committed Jun 21, 2024
1 parent 1f85276 commit cec8b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def main():
st.session_state.pdf_uploaded = False
query = st.text_input("Ask questions about your PDF file:")
btn=st.button("Ask")
embedding_model = SentenceTransformer("'all-mpnet-base-v2'",device='cpu')
embedding_model = SentenceTransformer("all-mpnet-base-v2",device='cpu')
if pdf:
if pdf.size > MAX_UPLOAD_SIZE_BYTES:
st.error(f"File size is too large! Please upload a file smaller than {MAX_UPLOAD_SIZE_MB} MB.")
Expand Down

0 comments on commit cec8b8d

Please sign in to comment.