emvecchi commited on
Commit
b0c2930
·
verified ·
1 Parent(s): e2db59c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -371,6 +371,10 @@ def show_field(f: Field, index: int, data_collected):
371
  md_path = os.path.join(input_repo_path, "role_descriptions", role_name)
372
  content = load_text(md_path)
373
  st.markdown(content, unsafe_allow_html=True)
 
 
 
 
374
  elif f.other_params and f.other_params.get("instruction_content"):
375
  content = f.other_params.get("content", "")
376
  if content:
 
371
  md_path = os.path.join(input_repo_path, "role_descriptions", role_name)
372
  content = load_text(md_path)
373
  st.markdown(content, unsafe_allow_html=True)
374
+ elif f.other_params and f.other_params.get("use_guidelines"):
375
+ md_path = os.path.join(input_repo_path, "guidelines.md")
376
+ content = load_text(md_path)
377
+ st.markdown(content, unsafe_allow_html=True)
378
  elif f.other_params and f.other_params.get("instruction_content"):
379
  content = f.other_params.get("content", "")
380
  if content: