amaye15 commited on
Commit
1862d5b
·
1 Parent(s): d36647a

Debug - indent

Browse files
Files changed (1) hide show
  1. app/main.py +12 -12
app/main.py CHANGED
@@ -228,18 +228,18 @@ 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
+ 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