emvecchi commited on
Commit
e632f30
·
verified ·
1 Parent(s): 88c6c5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -231,9 +231,10 @@ def get_path():
231
 
232
  def display_dialogue(dialogue_path):
233
  dialogue_text = load_text(dialogue_path)
234
- st.markdown(
235
- f"<details><summary><b>Annotation Guidelines</b></summary><div>{dialogue_text}</div></details><br>",
236
- unsafe_allow_html=True)
 
237
 
238
  def display_image(image_path):
239
  with hf_fs.open(image_path) as f:
 
231
 
232
  def display_dialogue(dialogue_path):
233
  dialogue_text = load_text(dialogue_path)
234
+ st.code(dialogue_text, language="markdown", line_numbers=True)
235
+ #st.markdown(
236
+ # f"<details><summary><b>Annotation Guidelines</b></summary><div>{dialogue_text}</div></details><br>",
237
+ #unsafe_allow_html=True)
238
 
239
  def display_image(image_path):
240
  with hf_fs.open(image_path) as f: