Spaces:
Sleeping
Sleeping
Commit
·
215416f
1
Parent(s):
c166c26
Update app.py
Browse files
app.py
CHANGED
@@ -13,13 +13,13 @@ for milestone in inference_repo.get_milestones():
|
|
13 |
desc = dict()
|
14 |
for line in milestone.description.split('\n'):
|
15 |
tmp = line.split(":")
|
16 |
-
desc[tmp[0]] = tmp[1]
|
17 |
st.write(desc)
|
18 |
-
df.append(dict(Task=milestone.title, Start=
|
19 |
|
20 |
-
colors = {'
|
21 |
-
'
|
22 |
-
'
|
23 |
|
24 |
fig = ff.create_gantt(df, colors=colors, index_col='Resource', show_colorbar=True)
|
25 |
st.plotly_chart(fig)
|
|
|
13 |
desc = dict()
|
14 |
for line in milestone.description.split('\n'):
|
15 |
tmp = line.split(":")
|
16 |
+
desc[tmp[0].lower()] = tmp[1].lower()
|
17 |
st.write(desc)
|
18 |
+
df.append(dict(Task=milestone.title, Start=desc['start date'], Finish=milestone.due_on, Resource=desc['status']))
|
19 |
|
20 |
+
colors = {'not started': 'rgb(220, 0, 0)',
|
21 |
+
'incomplete': (1, 0.9, 0.16),
|
22 |
+
'complete': 'rgb(0, 255, 100)'}
|
23 |
|
24 |
fig = ff.create_gantt(df, colors=colors, index_col='Resource', show_colorbar=True)
|
25 |
st.plotly_chart(fig)
|