Skip to content

Commit

Permalink
Solve pylint complains
Browse files Browse the repository at this point in the history
  • Loading branch information
Maclenn77 committed Dec 9, 2023
1 parent 04e2ec8 commit 9ae39bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import openai
from dotenv import load_dotenv
from openai import OpenAI
from langchain.vectorstores import Chroma

load_dotenv()

Expand Down Expand Up @@ -95,12 +94,6 @@
chroma_client.delete_collection(collection.name)
except AttributeError:
st.error("Collection erased.")

if chroma_client.get_collection(collection.name) is not None:
langchain_agent = Chroma(client=chroma_client,
collection_name=collection.name,
embedding_function=embedding_function
)



3 changes: 2 additions & 1 deletion wk_flow_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ streamlit
pymupdf
openai
tiktoken
pylint
pylint}
langchain
chromadb>='0.4.18'

0 comments on commit 9ae39bd

Please sign in to comment.