user-churn / tabs /performance.py
VasithaTilakumara
Version 2.0 - added LFS tracking for lsapp.tsv and updated features
53b92fc
raw
history blame contribute delete
706 Bytes
from utils.history import load_history
import gradio as gr
def render():
gr.Markdown("## βš™οΈ Model Performance & Simulation History")
with gr.Row():
with gr.Column(scale=2):
gr.Markdown("### 🧩 Recent Simulations")
history_table = gr.DataFrame(
value=load_history(limit=15),
label="Recent Simulation Runs",
interactive=False
)
refresh_btn = gr.Button("πŸ”„ Refresh Table")
def reload_table():
print("πŸ” Reloading simulation history...")
return load_history(limit=15)
refresh_btn.click(fn=reload_table, outputs=history_table)