Modify: result view
Browse files
app.py
CHANGED
@@ -141,11 +141,12 @@ class GramformerDemo:
|
|
141 |
if input_text.strip():
|
142 |
results = gf.correct(input_text, max_candidates=max_candidates)
|
143 |
|
144 |
-
|
145 |
-
|
|
|
146 |
|
147 |
-
st.markdown(f'#### Output:')
|
148 |
st.write('')
|
|
|
149 |
st.success(corrected_sentence)
|
150 |
exp1 = st.expander(label='Show highlights', expanded=True)
|
151 |
with exp1:
|
|
|
141 |
if input_text.strip():
|
142 |
results = gf.correct(input_text, max_candidates=max_candidates)
|
143 |
|
144 |
+
st.markdown(f'#### Output:')
|
145 |
+
for i in range(0, len(results)):
|
146 |
+
corrected_sentence, score = results[i]
|
147 |
|
|
|
148 |
st.write('')
|
149 |
+
st.markdown(f'##### Candidate {i}:')
|
150 |
st.success(corrected_sentence)
|
151 |
exp1 = st.expander(label='Show highlights', expanded=True)
|
152 |
with exp1:
|