amaye15 commited on
Commit
ca0254f
·
1 Parent(s): 1862d5b
Files changed (1) hide show
  1. app/main.py +0 -12
app/main.py CHANGED
@@ -228,18 +228,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
228
  # This function will read the `notification_list` state
229
  every=1
230
  )
231
- def update_notification_ui(notif_list_state):
232
- # <<< Add Logging >>>
233
- # notif_list_state here *is* the Python list from the gr.State object
234
- logger.debug(f"UI Update Triggered. State List Length: {len(notif_list_state)}. Content: {notif_list_state[:5]}")
235
- # Join the list items into a string for display
236
- return "\n".join(notif_list_state)
237
-
238
- notification_display.change( # Use .change with every= setup on the component
239
- fn=update_notification_ui,
240
- inputs=[notification_list], # Read the state
241
- outputs=[notification_display] # Update the component
242
- )
243
 
244
  # --- Event Handlers ---
245
 
 
228
  # This function will read the `notification_list` state
229
  every=1
230
  )
 
 
 
 
 
 
 
 
 
 
 
 
231
 
232
  # --- Event Handlers ---
233