nlpblogs commited on
Commit
02b79ed
·
verified ·
1 Parent(s): ac32d33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -21,14 +21,9 @@ for uploaded_file in uploaded_files:
21
  st.subheader("Paste the job description")
22
 
23
  txt = st.text_area("Job description")
24
- st.dataframe(txt)
25
-
26
- vec = TfidfVectorizer()
27
- tf_idf = vec.fit_transform(data['Resume'])
28
- st.write(pd.DataFrame(tf_idf.toarray(), columns=vec.get_feature_names_out()))
29
- from sklearn.metrics.pairwise import cosine_similarity
30
- cosine_sim = cosine_similarity(tf_idf, tf_idf)
31
- st.write(cosine_sim)
32
 
 
33
 
34
 
 
21
  st.subheader("Paste the job description")
22
 
23
  txt = st.text_area("Job description")
24
+ txt1 = pd.Series(txt, index = ["Job"])
25
+ st.dataframe(txt1)
 
 
 
 
 
 
26
 
27
+
28
 
29