awacke1 commited on
Commit
9cdbd2f
Β·
verified Β·
1 Parent(s): 571d65d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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.experimental_rerun()
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.experimental_rerun()
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.experimental_rerun()
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.experimental_rerun()
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.experimental_rerun()
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.experimental_rerun()
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.experimental_rerun()
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)