orionweller commited on
Commit
ea3796f
1 Parent(s): fc9135c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -113,13 +113,13 @@ with col2:
113
  container.divider()
114
 
115
  container.subheader("Diff: Original English vs Altered English")
116
- processed_diff = generate_diff_html_word_level(narrative['original_english'], narrative['altered_english'])
117
  with container.container(border=True):
118
  st.markdown(processed_diff, unsafe_allow_html=True)
119
  container.divider()
120
 
121
  container.subheader("Original Text")
122
- original_input = container.text_area("Edit the original text", value=narrative['original'], height=300)
123
 
124
  elif narrative_index < 0:
125
  st.title("Overview")
 
113
  container.divider()
114
 
115
  container.subheader("Diff: Original English vs Altered English")
116
+ processed_diff = generate_diff_html_word_level(narrative['original_english'].strip(), narrative['altered_english'].strip())
117
  with container.container(border=True):
118
  st.markdown(processed_diff, unsafe_allow_html=True)
119
  container.divider()
120
 
121
  container.subheader("Original Text")
122
+ original_input = container.text_area("Edit the original text", value=narrative['original'].strip(), height=300)
123
 
124
  elif narrative_index < 0:
125
  st.title("Overview")