Prachidwi commited on
Commit
bdcaecd
1 Parent(s): 434517d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -1,21 +1,3 @@
1
- import subprocess
2
- import sys
3
-
4
- # Function to install a package
5
- def install_package(package):
6
- subprocess.check_call([sys.executable, "-m", "pip", "install", package])
7
-
8
- # Install required packages if they are not already installed
9
- required_packages = [
10
- "PyPDF2", "streamlit", "langchain", "langchain-community",
11
- "faiss-cpu", "sentence-transformers", "python-dotenv"
12
- ]
13
- for package in required_packages:
14
- try:
15
- __import__(package)
16
- except ImportError:
17
- install_package(package)
18
-
19
  import os
20
  import streamlit as st
21
  from dotenv import load_dotenv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import os
2
  import streamlit as st
3
  from dotenv import load_dotenv