Lahiru Menikdiwela commited on
Commit
7d7d8fa
·
1 Parent(s): 8efb10f

debug ip format -test markdown-3

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -185,13 +185,16 @@ def load_app():
185
  else:
186
  logger.info("Text Input Type: INPUT TEXT")
187
  cleaned_txt = inp_text # clean_text(inp_text)
188
- print(cleaned_txt)
189
  # view summarized text (expander)
190
  with st.expander("View input text"):
191
  if is_url:
192
  st.write(cleaned_txt[0])
193
  else:
194
- st.markdown(f"""{cleaned_txt}""")
 
 
 
195
 
196
  st.subheader('Optional - Evaluate summary against a reference')
197
  # with st.form('Evaluate summary against a reference'):
 
185
  else:
186
  logger.info("Text Input Type: INPUT TEXT")
187
  cleaned_txt = inp_text # clean_text(inp_text)
188
+ # print(cleaned_txt)
189
  # view summarized text (expander)
190
  with st.expander("View input text"):
191
  if is_url:
192
  st.write(cleaned_txt[0])
193
  else:
194
+ formatted_text = cleaned_txt.replace("_", "\\_") # Escape underscores
195
+ formatted_text = " ".join(formatted_text.split())
196
+ st.markdown(f"""{formatted_text}""")
197
+ print("format")
198
 
199
  st.subheader('Optional - Evaluate summary against a reference')
200
  # with st.form('Evaluate summary against a reference'):