Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -542,7 +542,7 @@ def display_search_results(keyword, container):
|
|
542 |
updated_doc = json.loads(edited)
|
543 |
container.upsert_item(body=updated_doc)
|
544 |
st.success(f"Updated {doc_id}!")
|
545 |
-
st.
|
546 |
except Exception as e:
|
547 |
st.error(f"Error saving {doc_id}: {str(e)}")
|
548 |
|
@@ -586,7 +586,7 @@ def edit_documents_list(container):
|
|
586 |
st.success(f"Updated {doc_id} π")
|
587 |
else:
|
588 |
st.error(f"Error updating {doc_id}: {message}")
|
589 |
-
st.
|
590 |
|
591 |
# =============================================================================
|
592 |
# βββββββββββββ VIDEO & AUDIO UI FUNCTIONS βββββββββββββ
|
@@ -840,7 +840,7 @@ def edit_names_grid(container):
|
|
840 |
st.sidebar.success(f"Updated Name for {doc_id} to '{row['Name']}'")
|
841 |
else:
|
842 |
st.sidebar.error(f"Update error for {doc_id}: {message}")
|
843 |
-
st.
|
844 |
|
845 |
# =============================================================================
|
846 |
# βββββββββββββ SEARCH RESULTS DISPLAY (Editable Code Editors)
|
@@ -858,7 +858,7 @@ def display_search_results(keyword, container):
|
|
858 |
updated_doc = json.loads(edited)
|
859 |
container.upsert_item(body=updated_doc)
|
860 |
st.success(f"Updated {doc_id}!")
|
861 |
-
st.
|
862 |
except Exception as e:
|
863 |
st.error(f"Error saving {doc_id}: {str(e)}")
|
864 |
|
@@ -902,7 +902,7 @@ def edit_documents_list(container):
|
|
902 |
st.success(f"Updated {doc_id} π")
|
903 |
else:
|
904 |
st.error(f"Error updating {doc_id}: {message}")
|
905 |
-
st.
|
906 |
|
907 |
# =============================================================================
|
908 |
# βββββββββββββ VIDEO & AUDIO UI FUNCTIONS βββββββββββββ
|
@@ -1083,7 +1083,7 @@ def display_search_results(keyword, container):
|
|
1083 |
updated_doc = json.loads(edited)
|
1084 |
container.upsert_item(body=updated_doc)
|
1085 |
st.success(f"Updated {doc_id}!")
|
1086 |
-
st.
|
1087 |
except Exception as e:
|
1088 |
st.error(f"Error saving {doc_id}: {str(e)}")
|
1089 |
|
@@ -1127,7 +1127,7 @@ def edit_documents_list(container):
|
|
1127 |
st.success(f"Updated {doc_id} π")
|
1128 |
else:
|
1129 |
st.error(f"Error updating {doc_id}: {message}")
|
1130 |
-
st.
|
1131 |
|
1132 |
# =============================================================================
|
1133 |
# βββββββββββββ SEARCH DOCUMENTS UI (Enter Key triggers search)
|
|
|
542 |
updated_doc = json.loads(edited)
|
543 |
container.upsert_item(body=updated_doc)
|
544 |
st.success(f"Updated {doc_id}!")
|
545 |
+
st.rerun()
|
546 |
except Exception as e:
|
547 |
st.error(f"Error saving {doc_id}: {str(e)}")
|
548 |
|
|
|
586 |
st.success(f"Updated {doc_id} π")
|
587 |
else:
|
588 |
st.error(f"Error updating {doc_id}: {message}")
|
589 |
+
st.rerun()
|
590 |
|
591 |
# =============================================================================
|
592 |
# βββββββββββββ VIDEO & AUDIO UI FUNCTIONS βββββββββββββ
|
|
|
840 |
st.sidebar.success(f"Updated Name for {doc_id} to '{row['Name']}'")
|
841 |
else:
|
842 |
st.sidebar.error(f"Update error for {doc_id}: {message}")
|
843 |
+
st.rerun()
|
844 |
|
845 |
# =============================================================================
|
846 |
# βββββββββββββ SEARCH RESULTS DISPLAY (Editable Code Editors)
|
|
|
858 |
updated_doc = json.loads(edited)
|
859 |
container.upsert_item(body=updated_doc)
|
860 |
st.success(f"Updated {doc_id}!")
|
861 |
+
st.rerun()
|
862 |
except Exception as e:
|
863 |
st.error(f"Error saving {doc_id}: {str(e)}")
|
864 |
|
|
|
902 |
st.success(f"Updated {doc_id} π")
|
903 |
else:
|
904 |
st.error(f"Error updating {doc_id}: {message}")
|
905 |
+
st.rerun()
|
906 |
|
907 |
# =============================================================================
|
908 |
# βββββββββββββ VIDEO & AUDIO UI FUNCTIONS βββββββββββββ
|
|
|
1083 |
updated_doc = json.loads(edited)
|
1084 |
container.upsert_item(body=updated_doc)
|
1085 |
st.success(f"Updated {doc_id}!")
|
1086 |
+
st.rerun()
|
1087 |
except Exception as e:
|
1088 |
st.error(f"Error saving {doc_id}: {str(e)}")
|
1089 |
|
|
|
1127 |
st.success(f"Updated {doc_id} π")
|
1128 |
else:
|
1129 |
st.error(f"Error updating {doc_id}: {message}")
|
1130 |
+
st.rerun()
|
1131 |
|
1132 |
# =============================================================================
|
1133 |
# βββββββββββββ SEARCH DOCUMENTS UI (Enter Key triggers search)
|