SalexAI commited on
Commit
62d1bab
·
verified ·
1 Parent(s): 184de22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -222,13 +222,15 @@ def unishare_app():
222
  [clear_result]
223
  )
224
 
 
 
225
  # Update UI components when data changes
226
  def refresh_ui():
227
  list_selector.choices = list(lists.keys())
228
 
229
  # Set up event handlers to refresh UI
230
- add_button.click(lambda: None, [], [], _js="() => {window.location.reload()}")
231
- clear_button.click(lambda: None, [], [], _js="() => {window.location.reload()}")
232
 
233
  return demo
234
 
 
222
  [clear_result]
223
  )
224
 
225
+ # ... (keep all other imports and code the same)
226
+
227
  # Update UI components when data changes
228
  def refresh_ui():
229
  list_selector.choices = list(lists.keys())
230
 
231
  # Set up event handlers to refresh UI
232
+ add_button.click(lambda: None, [], [], js="() => {window.location.reload()}")
233
+ clear_button.click(lambda: None, [], [], js="() => {window.location.reload()}")
234
 
235
  return demo
236