Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 (>
|
36 |
sentences = sample["sentences_and_scores"]
|
37 |
-
sentences = [e for e in sentences if e["score"] >
|
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):
|