Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -830,7 +830,7 @@ def main():
|
|
830 |
st.session_state.clone_mode = False
|
831 |
st.session_state.cloned_doc = None
|
832 |
st.session_state.cloned_doc_str = ''
|
833 |
-
st.rerun()
|
834 |
else:
|
835 |
st.error(message)
|
836 |
|
@@ -852,6 +852,7 @@ def main():
|
|
852 |
cloned_doc_str = st.text_area("Cloned Document Content (in JSON format) - You can edit before saving!",
|
853 |
value=str(cloned_doc), height=300)
|
854 |
cloned_doc_str = cloned_doc_str.replace("'id': None,", "'id': 'test123',")
|
|
|
855 |
st.write(cloned_doc_str)
|
856 |
|
857 |
|
|
|
830 |
st.session_state.clone_mode = False
|
831 |
st.session_state.cloned_doc = None
|
832 |
st.session_state.cloned_doc_str = ''
|
833 |
+
#st.rerun()
|
834 |
else:
|
835 |
st.error(message)
|
836 |
|
|
|
852 |
cloned_doc_str = st.text_area("Cloned Document Content (in JSON format) - You can edit before saving!",
|
853 |
value=str(cloned_doc), height=300)
|
854 |
cloned_doc_str = cloned_doc_str.replace("'id': None,", "'id': 'test123',")
|
855 |
+
cloned_doc_str = cloned_doc_str.replace("'name': None,", "'name': 'test123',")
|
856 |
st.write(cloned_doc_str)
|
857 |
|
858 |
|