bestroi commited on
Commit
876c797
·
verified ·
1 Parent(s): 5c48c49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -436,7 +436,7 @@ tabs = st.tabs(["Raw XML", "DataFrame", "Diplomatic Edition", "Editor Edition",
436
  # -------------------------------
437
  with tabs[0]:
438
  st.subheader("Raw XML Content")
439
- st.container("XML Content", inscriptions_content, height=600)
440
 
441
  # -------------------------------
442
  # DataFrame Tab
@@ -463,7 +463,7 @@ with tabs[2]:
463
 
464
  if text_element is not None:
465
  diplomatic_text = render_diplomatic(text_element)
466
- st.text_area("Diplomatic Edition Text", diplomatic_text, height=600)
467
  else:
468
  st.warning("No text found for the selected inscription.")
469
 
@@ -485,7 +485,7 @@ with tabs[3]:
485
 
486
  if text_element is not None:
487
  editor_text = render_editor(text_element)
488
- st.text_area("Editor Edition Text", editor_text, height=600)
489
  else:
490
  st.warning("No text found for the selected inscription.")
491
 
 
436
  # -------------------------------
437
  with tabs[0]:
438
  st.subheader("Raw XML Content")
439
+ st.code(inscriptions_content, language="xml")
440
 
441
  # -------------------------------
442
  # DataFrame Tab
 
463
 
464
  if text_element is not None:
465
  diplomatic_text = render_diplomatic(text_element)
466
+ st.code(diplomatic_text, language="plaintext")
467
  else:
468
  st.warning("No text found for the selected inscription.")
469
 
 
485
 
486
  if text_element is not None:
487
  editor_text = render_editor(text_element)
488
+ st.code(editor_text, language="plaintext")
489
  else:
490
  st.warning("No text found for the selected inscription.")
491