harmdevries commited on
Commit
6e2d263
·
1 Parent(s): 7d16cd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -26,6 +26,12 @@ for milestone in inference_repo.get_milestones():
26
  Resource=desc['status'],
27
  Description=desc['leader']))
28
 
 
 
 
 
 
 
29
  colors = {'not started': 'rgb(217, 217, 217)',
30
  'in progress': 'rgb(147, 196, 125)',
31
  'high priority - on track': 'rgb(234, 153, 153)',
@@ -36,8 +42,9 @@ colors = {'not started': 'rgb(217, 217, 217)',
36
  fig = ff.create_gantt(df, colors=colors,
37
  index_col='Resource',
38
  show_colorbar=True,
39
- show_hover_fill=True,
40
- title="BigCode planning")
 
41
 
42
  fig.update_xaxes(ticks= "outside",
43
  ticklabelmode= "period",
@@ -67,7 +74,5 @@ fig.add_annotation({
67
  "showarrow": False,
68
  })
69
 
70
- fig.add_bar(x=["2023-04-01","2023-04-02"], y=[-0.5, -0.5], orientation="h", name="in progress")
71
-
72
  # fig.data.append(tmp)
73
  st.plotly_chart(fig, use_container_width=True)
 
26
  Resource=desc['status'],
27
  Description=desc['leader']))
28
 
29
+ df.append(dict(Task=f"""<a href="https://www.github.com/bigcode-project/bigcode-inference-benchmark/milestone/{milestone.number}", target="_black">{milestone.title}</a>""",
30
+ Start='2023-04-01',
31
+ Finish='2023-04-02',
32
+ Resource='in progress',
33
+ Description="")
34
+
35
  colors = {'not started': 'rgb(217, 217, 217)',
36
  'in progress': 'rgb(147, 196, 125)',
37
  'high priority - on track': 'rgb(234, 153, 153)',
 
42
  fig = ff.create_gantt(df, colors=colors,
43
  index_col='Resource',
44
  show_colorbar=True,
45
+ show_hover_fill=True,
46
+ group_tasks=True,
47
+ title="Inference")
48
 
49
  fig.update_xaxes(ticks= "outside",
50
  ticklabelmode= "period",
 
74
  "showarrow": False,
75
  })
76
 
 
 
77
  # fig.data.append(tmp)
78
  st.plotly_chart(fig, use_container_width=True)