awacke1 commited on
Commit
2618074
1 Parent(s): f468451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -814,11 +814,12 @@ def main():
814
  st.markdown(f"##### Document ID: {doc.get('id', '')}")
815
  if st.button("📄 Clone Document", key=f'clone_button_{idx}'):
816
  cloned_doc = doc.copy()
817
-
818
  # Generate a unique ID
819
  cloned_doc['id'] = generate_unique_id()
820
  cloned_doc['name'] = generate_unique_id()
821
  cloned_doc_str = st.text_area("Cloned Document Content (in JSON format) - Update name please to make it unique before saving!", value=cloned_doc, height=300)
 
822
 
823
  st.markdown("#### Edit Cloned Document and Name Your Clone:")
824
  if st.button("💾 Save Cloned Document"):
 
814
  st.markdown(f"##### Document ID: {doc.get('id', '')}")
815
  if st.button("📄 Clone Document", key=f'clone_button_{idx}'):
816
  cloned_doc = doc.copy()
817
+ st.code(cloned_doc, language="python")
818
  # Generate a unique ID
819
  cloned_doc['id'] = generate_unique_id()
820
  cloned_doc['name'] = generate_unique_id()
821
  cloned_doc_str = st.text_area("Cloned Document Content (in JSON format) - Update name please to make it unique before saving!", value=cloned_doc, height=300)
822
+ st.code(cloned_doc_str, language="python")
823
 
824
  st.markdown("#### Edit Cloned Document and Name Your Clone:")
825
  if st.button("💾 Save Cloned Document"):