Spaces:
Paused
Paused
Tonic commited on
fix gradio display issue
Browse files
app.py
CHANGED
|
@@ -2645,12 +2645,13 @@ def create_interface():
|
|
| 2645 |
value=get_market_status_display()
|
| 2646 |
)
|
| 2647 |
|
| 2648 |
-
#
|
| 2649 |
-
|
|
|
|
| 2650 |
fn=update_market_status,
|
| 2651 |
inputs=None,
|
| 2652 |
outputs=market_status_display,
|
| 2653 |
-
every=600 # Update every 10 minutes
|
| 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
|