Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import subprocess
|
|
| 4 |
|
| 5 |
try:
|
| 6 |
# Run the apt-get install command
|
| 7 |
-
subprocess.run(['
|
| 8 |
print("Packages installed successfully!")
|
| 9 |
except subprocess.CalledProcessError as e:
|
| 10 |
print(f"An error occurred: {e}")
|
|
|
|
| 4 |
|
| 5 |
try:
|
| 6 |
# Run the apt-get install command
|
| 7 |
+
subprocess.run(['apt-get', 'install', '-y', 'poppler-utils', 'tesseract-ocr', 'tesseract-ocr-eng'], check=True)
|
| 8 |
print("Packages installed successfully!")
|
| 9 |
except subprocess.CalledProcessError as e:
|
| 10 |
print(f"An error occurred: {e}")
|