crowles commited on
Commit
ec9c8aa
·
verified ·
1 Parent(s): b6c48ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,8 +1,8 @@
1
- # Install dependencies
2
- ! apt-get install -y poppler-utils tesseract-ocr tesseract-ocr-eng
3
-
4
  import os
5
- import gradio as gr # Assuming this is the input type (for example)
 
 
 
6
 
7
  def process_pdf(file):
8
 
 
 
 
 
1
  import os
2
+ import gradio as gr
3
+ import subprocess
4
+
5
+ subprocess.run(['apt-get', 'install', '-y', 'poppler-utils', 'tesseract-ocr', 'tesseract-ocr-eng'])
6
 
7
  def process_pdf(file):
8