harmdevries commited on
Commit
3ebe0a0
1 Parent(s): 0cfbcaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +57 -56
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
- if len(all_status) == 0:
46
- task_name = "None"
47
-
48
- for key in colors.keys():
49
- if key not in all_status:
50
- df.append(dict(Task=task_name,
51
- Start='2023-04-02',
52
- Finish='2023-04-02',
53
- Resource=key))
54
-
55
- fig = ff.create_gantt(df, colors=colors,
56
- index_col='Resource',
57
- show_colorbar=True,
58
- show_hover_fill=True,
59
- group_tasks=True,
60
- title=name)
61
-
62
- fig.update_xaxes(ticks= "outside",
63
- ticklabelmode= "period",
64
- tickformat="%b",
65
- tickcolor= "black",
66
- ticklen=10,
67
- range=[datetime.datetime(2022, 12, 30),
68
- datetime.datetime(2023, 4, 2)],
69
- minor=dict(
70
- ticklen=4,
71
- dtick=7*24*60*60*1000,
72
- tick0="2023-01-01",
73
- griddash='dot',
74
- gridcolor='white')
75
- )
76
-
77
- fig.update_layout(margin=go.layout.Margin(l=250))
78
- fig.layout.xaxis.rangeselector = None # remove range selector on top
79
-
80
- fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
81
- fig.add_annotation({
82
- "x": datetime.datetime.now().strftime('%Y-%m-%d'),
83
- "y": fig.layout.yaxis['range'][1],
84
- "yshift": 10,
85
- "text": "Today",
86
- "align": "left",
87
- "showarrow": False,
88
- })
 
 
 
 
 
 
 
 
 
89
 
90
- fig.add_hline(y=-0.5, line_width=1, line_color="grey")
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)