kinensake commited on
Commit
0730709
·
1 Parent(s): d57f0a6

Modify: result view

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- for result in results:
145
- corrected_sentence, score = result
 
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: