zhimin-z
commited on
Commit
·
5878602
1
Parent(s):
014ef37
fix
Browse files
app.py
CHANGED
|
@@ -679,23 +679,25 @@ with gr.Blocks(title="SWE Assistant PR & Commit Leaderboard", theme=gr.themes.So
|
|
| 679 |
gr.Markdown("*Shows acceptance rate trends and PR volumes for the most active assistants*")
|
| 680 |
pr_monthly_metrics_plot = gr.Plot(label="PR Monthly Metrics")
|
| 681 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 682 |
# Commit Monthly Metrics Section
|
| 683 |
gr.Markdown("---") # Divider
|
| 684 |
gr.Markdown("### Commit Monthly Performance - Top 5 Assistants")
|
| 685 |
gr.Markdown("*Shows commit volumes for the most active assistants*")
|
| 686 |
commit_monthly_metrics_plot = gr.Plot(label="Commit Monthly Metrics")
|
| 687 |
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
app.load(
|
| 695 |
-
fn=lambda: create_monthly_metrics_plot(type="commit"),
|
| 696 |
-
inputs=[],
|
| 697 |
-
outputs=[commit_monthly_metrics_plot]
|
| 698 |
-
)
|
| 699 |
|
| 700 |
|
| 701 |
# Submit Assistant Tab
|
|
|
|
| 679 |
gr.Markdown("*Shows acceptance rate trends and PR volumes for the most active assistants*")
|
| 680 |
pr_monthly_metrics_plot = gr.Plot(label="PR Monthly Metrics")
|
| 681 |
|
| 682 |
+
# Load PR monthly metrics when app starts
|
| 683 |
+
app.load(
|
| 684 |
+
fn=lambda: create_monthly_metrics_plot(type="pr"),
|
| 685 |
+
inputs=[],
|
| 686 |
+
outputs=[pr_monthly_metrics_plot]
|
| 687 |
+
)
|
| 688 |
+
|
| 689 |
# Commit Monthly Metrics Section
|
| 690 |
gr.Markdown("---") # Divider
|
| 691 |
gr.Markdown("### Commit Monthly Performance - Top 5 Assistants")
|
| 692 |
gr.Markdown("*Shows commit volumes for the most active assistants*")
|
| 693 |
commit_monthly_metrics_plot = gr.Plot(label="Commit Monthly Metrics")
|
| 694 |
|
| 695 |
+
# Load commit monthly metrics when app starts
|
| 696 |
+
app.load(
|
| 697 |
+
fn=lambda: create_monthly_metrics_plot(type="commit"),
|
| 698 |
+
inputs=[],
|
| 699 |
+
outputs=[commit_monthly_metrics_plot]
|
| 700 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 701 |
|
| 702 |
|
| 703 |
# Submit Assistant Tab
|