emvecchi commited on
Commit
b1417f8
·
verified ·
1 Parent(s): 822672f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -369,7 +369,9 @@ def show_field(f: Field, index: int, data_collected):
369
  content = load_text(md_path)
370
  st.markdown(content, unsafe_allow_html=True)
371
  elif f.other_params and f.other_params.get("instruction_content"):
372
- st.markdown(field.other_params.get("content", ""))
 
 
373
  else:
374
  path = f.other_params.get("path") if f.other_params else None
375
  if path:
 
369
  content = load_text(md_path)
370
  st.markdown(content, unsafe_allow_html=True)
371
  elif f.other_params and f.other_params.get("instruction_content"):
372
+ content = f.other_params.get("content", "")
373
+ if content:
374
+ st.markdown(content, unsafe_allow_html=True)
375
  else:
376
  path = f.other_params.get("path") if f.other_params else None
377
  if path: