Update app.py
Browse files
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, [], [],
|
231 |
-
clear_button.click(lambda: None, [], [],
|
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 |
|