Spaces:
Sleeping
Sleeping
Commit
·
727754f
1
Parent(s):
9d23aa2
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ name2repo = [("Training", "bigcode-project/Megatron-LM"),
|
|
15 |
# ("Inference", "bigcode-project/bigcode-inference-benchmark"),
|
16 |
]
|
17 |
|
|
|
18 |
g = Github(os.environ.get('github'))
|
19 |
df = list()
|
20 |
all_status = list()
|
@@ -36,6 +37,7 @@ for name, repo_name in name2repo:
|
|
36 |
Finish=milestone.due_on.strftime('%Y-%m-%d'),
|
37 |
Resource=desc['status'],
|
38 |
Description=desc['leader']))
|
|
|
39 |
|
40 |
colors = {'not started': 'rgb(217, 217, 217)',
|
41 |
'in progress': 'rgb(147, 196, 125)',
|
@@ -88,7 +90,11 @@ fig.add_annotation({
|
|
88 |
"showarrow": False,
|
89 |
})
|
90 |
|
|
|
91 |
fig.add_hline(y=-0.5, line_width=1, line_color="grey")
|
92 |
-
|
|
|
|
|
|
|
93 |
|
94 |
st.plotly_chart(fig, use_container_width=True)
|
|
|
15 |
# ("Inference", "bigcode-project/bigcode-inference-benchmark"),
|
16 |
]
|
17 |
|
18 |
+
name2num_milestones = dict()
|
19 |
g = Github(os.environ.get('github'))
|
20 |
df = list()
|
21 |
all_status = list()
|
|
|
37 |
Finish=milestone.due_on.strftime('%Y-%m-%d'),
|
38 |
Resource=desc['status'],
|
39 |
Description=desc['leader']))
|
40 |
+
name2num_milestones[name] = len(repo.get_milestones())
|
41 |
|
42 |
colors = {'not started': 'rgb(217, 217, 217)',
|
43 |
'in progress': 'rgb(147, 196, 125)',
|
|
|
90 |
"showarrow": False,
|
91 |
})
|
92 |
|
93 |
+
|
94 |
fig.add_hline(y=-0.5, line_width=1, line_color="grey")
|
95 |
+
height = -0.5
|
96 |
+
for name, _ in name2repo[::-1]:
|
97 |
+
height += name2num_milestones[name]
|
98 |
+
fig.add_hline(y=height, line_width=1, line_color="grey")
|
99 |
|
100 |
st.plotly_chart(fig, use_container_width=True)
|