crowles commited on
Commit
1121811
·
verified ·
1 Parent(s): 41ac0fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,12 +4,12 @@ import subprocess
4
 
5
  try:
6
  # Update the package lists
7
- subprocess.run(['sudo', 'apt-get', 'update'], check=True)
8
 
9
  # Install the required packages
10
- subprocess.run(['sudo', 'apt-get', 'install', '-y', 'poppler-utils'], check=True)
11
- subprocess.run(['sudo', 'apt-get', 'install', '-y', 'tesseract-ocr'], check=True)
12
- subprocess.run(['sudo', 'apt-get', 'install', '-y', 'tesseract-ocr-eng'], check=True)
13
 
14
  print("Packages installed successfully!")
15
  except subprocess.CalledProcessError as e:
 
4
 
5
  try:
6
  # Update the package lists
7
+ subprocess.run(['apt-get', 'update'], check=True)
8
 
9
  # Install the required packages
10
+ subprocess.run(['apt-get', 'install', '-y', 'poppler-utils'], check=True)
11
+ subprocess.run(['apt-get', 'install', '-y', 'tesseract-ocr'], check=True)
12
+ subprocess.run(['apt-get', 'install', '-y', 'tesseract-ocr-eng'], check=True)
13
 
14
  print("Packages installed successfully!")
15
  except subprocess.CalledProcessError as e: