Tonic commited on
Commit
756501b
·
unverified ·
1 Parent(s): 4ac6687

fix gradio display issue

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -2645,12 +2645,13 @@ def create_interface():
2645
  value=get_market_status_display()
2646
  )
2647
 
2648
- # Set up periodic updates for market status
2649
- market_status_display.every(
 
2650
  fn=update_market_status,
2651
  inputs=None,
2652
  outputs=market_status_display,
2653
- every=600 # Update every 10 minutes (600 seconds)
2654
  )
2655
 
2656
  # Add enhanced market information section
 
2645
  value=get_market_status_display()
2646
  )
2647
 
2648
+ # Add a hidden timer button to trigger periodic updates
2649
+ timer = gr.Button(visible=False)
2650
+ timer.click(
2651
  fn=update_market_status,
2652
  inputs=None,
2653
  outputs=market_status_display,
2654
+ every=600 # Update every 10 minutes
2655
  )
2656
 
2657
  # Add enhanced market information section