Hyeonseo's picture
init: Upload PA source code and enviroment seting
0259f08
raw
history blame
964 Bytes
import subprocess
def env_set():
subprocess.run(f"pip install streamlit", shell=True)
subprocess.run(f"pip install pyngrok", shell=True)
subprocess.run(f"pip install -q openai", shell=True)
subprocess.run(f"pip install PyPDF2", shell=True)
subprocess.run(f"pip install python-pptx==0.6.18", shell=True)
subprocess.run(f"sudo apt-get install -f", shell=True)
subprocess.run(f"sudo apt-get install -y fonts-nanum", shell=True)
subprocess.run(f"sudo fc-cache -fv", shell=True)
subprocess.run(f"rm ~/.cache/matplotlib -rf", shell=True)
subprocess.run(f"curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o chrome.deb", shell=True)
subprocess.run(f"curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o chrome.deb", shell=True)
subprocess.run(f"dpkg --install chrome.deb", shell=True)
subprocess.run(f"apt-get install --fix-broken --assume-yes", shell=True)