Trista Yao commited on
Commit
84af80e
·
1 Parent(s): b6fb7ca

minor change

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -80,7 +80,6 @@ with col1:
80
 
81
  if st.button("Refine Resume", type="primary"):
82
  # 在这里调用模型
83
- # For example:
84
  # prediction = pipeline(resume_text, job_description)
85
  refined_resume = "This would be the refined resume after model processing" # 现在这个是hard code的prediction
86
  refined_score = 0.85 # Example hardcoded score
@@ -102,8 +101,11 @@ with col1:
102
  st.header("Results")
103
  st.text_area("Refined Work Experience", value=refined_resume, height=300)
104
  st.subheader("Similarity Score")
105
- # Below is just hardcoded for now
106
  st.metric("BERT Score (F1)", value=f"{refined_score:.2f}", delta=f"{refined_score - 0.75:.2f}")
 
 
 
107
  # 其实应该是
108
  # st.metric("BERT Score (F1)", value=f"{refined_bertscore:.2f}", delta=f"{delta_score:.2f}")
109
  # st.metric("Cosine Similarity", value=f"{refined_cosine_sim:.2f}", delta=f"{delta_cosine_sim:.2f}")
 
80
 
81
  if st.button("Refine Resume", type="primary"):
82
  # 在这里调用模型
 
83
  # prediction = pipeline(resume_text, job_description)
84
  refined_resume = "This would be the refined resume after model processing" # 现在这个是hard code的prediction
85
  refined_score = 0.85 # Example hardcoded score
 
101
  st.header("Results")
102
  st.text_area("Refined Work Experience", value=refined_resume, height=300)
103
  st.subheader("Similarity Score")
104
+ # Below are just hardcoded for now
105
  st.metric("BERT Score (F1)", value=f"{refined_score:.2f}", delta=f"{refined_score - 0.75:.2f}")
106
+ st.metric("Cosine Similarity", value=f"{0.85:.2f}", delta=f"{0.85 - 0.75:.2f}")
107
+ st.metric("ROUGE-1 (F1)", value=f"{0.80:.2f}", delta=f"{0.80 - 0.75:.2f}")
108
+ st.metric("ROUGE-L (F1)", value=f"{0.78:.2f}", delta=f"{0.78 - 0.75:.2f}")
109
  # 其实应该是
110
  # st.metric("BERT Score (F1)", value=f"{refined_bertscore:.2f}", delta=f"{delta_score:.2f}")
111
  # st.metric("Cosine Similarity", value=f"{refined_cosine_sim:.2f}", delta=f"{delta_cosine_sim:.2f}")