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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -368,6 +368,8 @@ def show_field(f: Field, index: int, data_collected):
368
  md_path = os.path.join(input_repo_path, "role_descriptions", role_name)
369
  content = load_text(md_path)
370
  st.markdown(content, unsafe_allow_html=True)
 
 
371
  else:
372
  path = f.other_params.get("path") if f.other_params else None
373
  if path:
 
368
  md_path = os.path.join(input_repo_path, "role_descriptions", role_name)
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: