Spaces:
Sleeping
Sleeping
Commit
·
42a6c14
1
Parent(s):
959888e
Update app.py
Browse files
app.py
CHANGED
@@ -14,16 +14,13 @@ for milestone in inference_repo.get_milestones():
|
|
14 |
for line in milestone.description.split('\n'):
|
15 |
tmp = line.split(":")
|
16 |
desc[tmp[0].lower()] = tmp[1].lower().strip()
|
17 |
-
|
18 |
-
st.write(desc['start date'])
|
19 |
-
df.append(dict(Task=milestone.title, Start='2023-01-19', Finish=milestone.due_on.strftime('%Y-%m-%d'), Resource=desc['status']))
|
20 |
|
21 |
colors = {'not started': 'rgb(220, 0, 0)',
|
22 |
'incomplete': (1, 0.9, 0.16),
|
23 |
'complete': 'rgb(0, 255, 100)'}
|
24 |
|
25 |
|
26 |
-
|
27 |
fig = ff.create_gantt(df, colors=colors, index_col='Resource', show_colorbar=True)
|
28 |
fig.update_xaxes(ticks= "outside",
|
29 |
ticklabelmode= "period",
|
|
|
14 |
for line in milestone.description.split('\n'):
|
15 |
tmp = line.split(":")
|
16 |
desc[tmp[0].lower()] = tmp[1].lower().strip()
|
17 |
+
df.append(dict(Task=milestone.title, Start=desc['start date'], Finish=milestone.due_on.strftime('%Y-%m-%d'), Resource=desc['status']))
|
|
|
|
|
18 |
|
19 |
colors = {'not started': 'rgb(220, 0, 0)',
|
20 |
'incomplete': (1, 0.9, 0.16),
|
21 |
'complete': 'rgb(0, 255, 100)'}
|
22 |
|
23 |
|
|
|
24 |
fig = ff.create_gantt(df, colors=colors, index_col='Resource', show_colorbar=True)
|
25 |
fig.update_xaxes(ticks= "outside",
|
26 |
ticklabelmode= "period",
|