Gladiator commited on
Commit
24d1c8f
1 Parent(s): 44c6b64

fix errors

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -125,5 +125,6 @@ if __name__ == "__main__":
125
 
126
  st.subheader("Rogue Scores")
127
  rouge_sc = Rouge()
128
- score = rouge_sc.get_scores(summarized_text, text_to_summarize, avg=True)
 
129
  st.code(score)
 
125
 
126
  st.subheader("Rogue Scores")
127
  rouge_sc = Rouge()
128
+ ground_truth = cleaned_txt[0] if is_url else cleaned_txt
129
+ score = rouge_sc.get_scores(summarized_text, ground_truth, avg=True)
130
  st.code(score)