Spaces:
Sleeping
Sleeping
harmdevries
commited on
Commit
·
f9fe402
1
Parent(s):
70ca32b
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@ from github import Github
|
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
|
|
|
|
|
|
|
|
|
5 |
g = Github(os.environ.get('github'))
|
6 |
|
7 |
inference_repo = g.get_repo("bigcode-project/bigcode-inference-benchmark")
|
@@ -9,4 +13,20 @@ inference_repo = g.get_repo("bigcode-project/bigcode-inference-benchmark")
|
|
9 |
for milestone in inference_repo.get_milestones():
|
10 |
s = "###" + milestone.title + "\n"
|
11 |
st.markdown(s)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
|
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
|
5 |
+
import plotly.figure_factory as ff
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
g = Github(os.environ.get('github'))
|
10 |
|
11 |
inference_repo = g.get_repo("bigcode-project/bigcode-inference-benchmark")
|
|
|
13 |
for milestone in inference_repo.get_milestones():
|
14 |
s = "###" + milestone.title + "\n"
|
15 |
st.markdown(s)
|
16 |
+
|
17 |
+
df = [dict(Task="Job-1", Start='2017-01-01', Finish='2017-02-02', Resource='Complete'),
|
18 |
+
dict(Task="Job-1", Start='2017-02-15', Finish='2017-03-15', Resource='Incomplete'),
|
19 |
+
dict(Task="Job-2", Start='2017-01-17', Finish='2017-02-17', Resource='Not Started'),
|
20 |
+
dict(Task="Job-2", Start='2017-01-17', Finish='2017-02-17', Resource='Complete'),
|
21 |
+
dict(Task="Job-3", Start='2017-03-10', Finish='2017-03-20', Resource='Not Started'),
|
22 |
+
dict(Task="Job-3", Start='2017-04-01', Finish='2017-04-20', Resource='Not Started'),
|
23 |
+
dict(Task="Job-3", Start='2017-05-18', Finish='2017-06-18', Resource='Not Started'),
|
24 |
+
dict(Task="Job-4", Start='2017-01-14', Finish='2017-03-14', Resource='Complete')]
|
25 |
+
|
26 |
+
colors = {'Not Started': 'rgb(220, 0, 0)',
|
27 |
+
'Incomplete': (1, 0.9, 0.16),
|
28 |
+
'Complete': 'rgb(0, 255, 100)'}
|
29 |
+
|
30 |
+
fig = ff.create_gantt(df, colors=colors, index_col='Resource', show_colorbar=True)
|
31 |
+
fig.show()
|
32 |
|