Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|