fix errors
Browse files
app.py
CHANGED
@@ -125,5 +125,6 @@ if __name__ == "__main__":
|
|
125 |
|
126 |
st.subheader("Rogue Scores")
|
127 |
rouge_sc = Rouge()
|
128 |
-
|
|
|
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)
|