cloudranger commited on
Commit
cf6d66d
·
1 Parent(s): 4f7098b

remove force install

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -11,14 +11,14 @@ from langchain.chains import create_retrieval_chain
11
  from langchain.retrievers import ContextualCompressionRetriever
12
  from langchain_huggingface.cross_encoders import HuggingFaceCrossEncoder
13
 
14
- import os
15
- import subprocess
16
 
17
- def install(package):
18
- subprocess.check_call([os.sys.executable, "-m", "pip", "install", package])
19
 
20
- install("langchain-community")
21
- install("pypdf")
22
 
23
  # --- Configuration ---
24
  # Make sure your GROQ_API_KEY is set in your Hugging Face Space secrets
 
11
  from langchain.retrievers import ContextualCompressionRetriever
12
  from langchain_huggingface.cross_encoders import HuggingFaceCrossEncoder
13
 
14
+ # import os
15
+ # import subprocess
16
 
17
+ # def install(package):
18
+ # subprocess.check_call([os.sys.executable, "-m", "pip", "install", package])
19
 
20
+ # install("langchain-community")
21
+ # install("pypdf")
22
 
23
  # --- Configuration ---
24
  # Make sure your GROQ_API_KEY is set in your Hugging Face Space secrets