Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -764,11 +764,18 @@ def main():
|
|
764 |
|
765 |
for idx, (col, doc) in enumerate(zip(cols, documents_to_display)):
|
766 |
with col:
|
|
|
767 |
st.markdown(f"##### Document ID: {doc.get('id', '')}")
|
768 |
-
editable_id = st.text_input("ID", value=doc.get('id', ''),
|
769 |
-
key=f'edit_id_{idx}')
|
770 |
editable_doc = doc.copy()
|
771 |
editable_doc.pop('id', None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
772 |
doc_str = st.text_area("Document Content (in JSON format)",
|
773 |
value=json.dumps(editable_doc, indent=2),
|
774 |
height=300,
|
|
|
764 |
|
765 |
for idx, (col, doc) in enumerate(zip(cols, documents_to_display)):
|
766 |
with col:
|
767 |
+
|
768 |
st.markdown(f"##### Document ID: {doc.get('id', '')}")
|
769 |
+
editable_id = st.text_input("ID", value=doc.get('id', ''), key=f'edit_id_{idx}')
|
|
|
770 |
editable_doc = doc.copy()
|
771 |
editable_doc.pop('id', None)
|
772 |
+
|
773 |
+
st.markdown(f"##### Document Name: {doc.get('name', '')}")
|
774 |
+
editable_id = st.text_input("Name", value=doc.get('name', ''), key=f'edit_name_{idx}')
|
775 |
+
editable_doc = doc.copy()
|
776 |
+
editable_doc.pop('name', None)
|
777 |
+
|
778 |
+
|
779 |
doc_str = st.text_area("Document Content (in JSON format)",
|
780 |
value=json.dumps(editable_doc, indent=2),
|
781 |
height=300,
|