loubnabnl HF staff commited on
Commit
7ff24b6
1 Parent(s): af70b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,9 +32,9 @@ st.subheader("📕 Generated text")
32
  st.markdown(sample['original_text'])
33
 
34
  # get inconsistent sentences
35
- st.subheader("🤔 Sentences with a high inconsistency score (> 0.5)")
36
  sentences = sample["sentences_and_scores"]
37
- sentences = [e for e in sentences if e["score"] > 0.5]
38
  sentences = sorted(sentences, key=lambda d: d['score'], reverse=True)
39
 
40
  for i, s in enumerate(sentences):
 
32
  st.markdown(sample['original_text'])
33
 
34
  # get inconsistent sentences
35
+ st.subheader(f"🤔 Sentences with a high inconsistency score (> {min_score})")
36
  sentences = sample["sentences_and_scores"]
37
+ sentences = [e for e in sentences if e["score"] > min_score]
38
  sentences = sorted(sentences, key=lambda d: d['score'], reverse=True)
39
 
40
  for i, s in enumerate(sentences):