nlpblogs commited on
Commit
0c1dcc4
·
verified ·
1 Parent(s): 6f05fcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -18,6 +18,8 @@ import pandas as pd
18
  from PyPDF2 import PdfReader
19
  from gliner import GLiNER
20
 
 
 
21
  uploaded_files = st.file_uploader(
22
  "Choose a PDF file(s) and job description as pdf", accept_multiple_files=True, type="pdf"
23
  )
@@ -49,10 +51,11 @@ if uploaded_files:
49
  except Exception as e:
50
  st.error(f"Error processing file {uploaded_file.name}: {e}")
51
 
 
52
  if all_data:
53
  df = pd.DataFrame(all_data)
54
  st.dataframe(df)
55
- txt = st.text_area("Job description")
56
  data1 = pd.Series(txt, index = ["Job Description"])
57
  result = pd.concat([df, data1], axis=1, ignore_index=True)
58
  st.dataframe(result)
 
18
  from PyPDF2 import PdfReader
19
  from gliner import GLiNER
20
 
21
+ txt = st.text_area("Job description")
22
+
23
  uploaded_files = st.file_uploader(
24
  "Choose a PDF file(s) and job description as pdf", accept_multiple_files=True, type="pdf"
25
  )
 
51
  except Exception as e:
52
  st.error(f"Error processing file {uploaded_file.name}: {e}")
53
 
54
+
55
  if all_data:
56
  df = pd.DataFrame(all_data)
57
  st.dataframe(df)
58
+
59
  data1 = pd.Series(txt, index = ["Job Description"])
60
  result = pd.concat([df, data1], axis=1, ignore_index=True)
61
  st.dataframe(result)