Spaces:
Sleeping
Sleeping
Commit
·
3ebe0a0
1
Parent(s):
0cfbcaa
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,12 +11,13 @@ import copy
|
|
| 11 |
st.set_page_config(layout="wide")
|
| 12 |
name2repo = [("Training", "bigcode-project/Megatron-LM"),
|
| 13 |
("Dataset", "bigcode-project/bigcode-dataset"),
|
| 14 |
-
("Evaluation", "bigcode-project/bigcode-evaluation-harness"),
|
| 15 |
-
("Inference", "bigcode-project/bigcode-inference-benchmark"),
|
| 16 |
]
|
| 17 |
|
| 18 |
g = Github(os.environ.get('github'))
|
| 19 |
|
|
|
|
| 20 |
for name, repo_name in name2repo:
|
| 21 |
repo = g.get_repo(repo_name)
|
| 22 |
df = list()
|
|
@@ -35,59 +36,59 @@ for name, repo_name in name2repo:
|
|
| 35 |
Finish=milestone.due_on.strftime('%Y-%m-%d'),
|
| 36 |
Resource=desc['status'],
|
| 37 |
Description=desc['leader']))
|
| 38 |
-
|
| 39 |
-
colors = {'not started': 'rgb(217, 217, 217)',
|
| 40 |
-
'in progress': 'rgb(147, 196, 125)',
|
| 41 |
-
'high priority - on track': 'rgb(234, 153, 153)',
|
| 42 |
-
'high priority - help needed': 'rgb(255, 0, 0)',
|
| 43 |
-
'completed': 'rgb(56, 118, 29)'}
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
-
fig.add_hline(y=2.5, line_width=1, line_color="grey")
|
| 92 |
-
|
| 93 |
-
st.plotly_chart(fig, use_container_width=True)
|
|
|
|
| 11 |
st.set_page_config(layout="wide")
|
| 12 |
name2repo = [("Training", "bigcode-project/Megatron-LM"),
|
| 13 |
("Dataset", "bigcode-project/bigcode-dataset"),
|
| 14 |
+
# ("Evaluation", "bigcode-project/bigcode-evaluation-harness"),
|
| 15 |
+
# ("Inference", "bigcode-project/bigcode-inference-benchmark"),
|
| 16 |
]
|
| 17 |
|
| 18 |
g = Github(os.environ.get('github'))
|
| 19 |
|
| 20 |
+
|
| 21 |
for name, repo_name in name2repo:
|
| 22 |
repo = g.get_repo(repo_name)
|
| 23 |
df = list()
|
|
|
|
| 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)',
|
| 42 |
+
'high priority - on track': 'rgb(234, 153, 153)',
|
| 43 |
+
'high priority - help needed': 'rgb(255, 0, 0)',
|
| 44 |
+
'completed': 'rgb(56, 118, 29)'}
|
| 45 |
+
|
| 46 |
+
if len(all_status) == 0:
|
| 47 |
+
task_name = "None"
|
| 48 |
+
|
| 49 |
+
for key in colors.keys():
|
| 50 |
+
if key not in all_status:
|
| 51 |
+
df.append(dict(Task=task_name,
|
| 52 |
+
Start='2023-04-02',
|
| 53 |
+
Finish='2023-04-02',
|
| 54 |
+
Resource=key))
|
| 55 |
+
|
| 56 |
+
fig = ff.create_gantt(df, colors=colors,
|
| 57 |
+
index_col='Resource',
|
| 58 |
+
show_colorbar=True,
|
| 59 |
+
show_hover_fill=True,
|
| 60 |
+
group_tasks=True,
|
| 61 |
+
title="BigCode planning")
|
| 62 |
+
|
| 63 |
+
fig.update_xaxes(ticks= "outside",
|
| 64 |
+
ticklabelmode= "period",
|
| 65 |
+
tickformat="%b",
|
| 66 |
+
tickcolor= "black",
|
| 67 |
+
ticklen=10,
|
| 68 |
+
range=[datetime.datetime(2022, 12, 30),
|
| 69 |
+
datetime.datetime(2023, 4, 2)],
|
| 70 |
+
minor=dict(
|
| 71 |
+
ticklen=4,
|
| 72 |
+
dtick=7*24*60*60*1000,
|
| 73 |
+
tick0="2023-01-01",
|
| 74 |
+
griddash='dot',
|
| 75 |
+
gridcolor='white')
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
+
fig.update_layout(margin=go.layout.Margin(l=250))
|
| 79 |
+
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
| 80 |
+
|
| 81 |
+
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
|
| 82 |
+
fig.add_annotation({
|
| 83 |
+
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
| 84 |
+
"y": fig.layout.yaxis['range'][1],
|
| 85 |
+
"yshift": 10,
|
| 86 |
+
"text": "Today",
|
| 87 |
+
"align": "left",
|
| 88 |
+
"showarrow": False,
|
| 89 |
+
})
|
| 90 |
+
|
| 91 |
+
fig.add_hline(y=-0.5, line_width=1, line_color="grey")
|
| 92 |
+
fig.add_hline(y=2.5, line_width=1, line_color="grey")
|
| 93 |
|
| 94 |
+
st.plotly_chart(fig, use_container_width=True)
|
|
|
|
|
|
|
|
|