Essa20001 commited on
Commit
e263b59
·
verified ·
1 Parent(s): 4add281

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import streamlit as st
2
  from yolo_text_extraction import extract_text_from_sections, cv_to_json
3
  import json
 
4
 
5
  def main():
 
 
 
6
  st.title("CV to JSON Converter")
7
 
8
  uploaded_file = st.file_uploader("Choose a PDF file", type="pdf")
 
1
  import streamlit as st
2
  from yolo_text_extraction import extract_text_from_sections, cv_to_json
3
  import json
4
+ import subprocess
5
 
6
  def main():
7
+ subprocess.run(["sudo", "apt-get", "install", "poppler-utils"],
8
+ capture_output=True, text=True, check=True)
9
+
10
  st.title("CV to JSON Converter")
11
 
12
  uploaded_file = st.file_uploader("Choose a PDF file", type="pdf")