assafvayner HF Staff Claude Sonnet 4.5 commited on
Commit
bd64b4c
·
1 Parent(s): 75ff8df

Remove auto-refresh to fix compatibility

Browse files

Remove 'every' parameter from demo.load() as it's not supported. Users can manually refresh status using the refresh button.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -209,11 +209,10 @@ with gr.Blocks(title="HuggingFace Webhook Processor") as demo:
209
  outputs=[recent_messages]
210
  )
211
 
212
- # Auto-refresh status every 5 seconds using Gradio 5 method
213
  demo.load(
214
  fn=get_status,
215
- outputs=[status_text, message_count, batch_count, latest_batch],
216
- every=5
217
  )
218
 
219
 
 
209
  outputs=[recent_messages]
210
  )
211
 
212
+ # Load initial status on page load
213
  demo.load(
214
  fn=get_status,
215
+ outputs=[status_text, message_count, batch_count, latest_batch]
 
216
  )
217
 
218