Spaces:
Sleeping
Sleeping
File size: 624 Bytes
b693c5c c121aed f3262d9 b693c5c f9fe402 c121aed 70ca32b 6764300 82865c2 6764300 f9fe402 8f2b5f9 c121aed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from github import Github
import os
import streamlit as st
import plotly.figure_factory as ff
g = Github(os.environ.get('github'))
inference_repo = g.get_repo("bigcode-project/bigcode-inference-benchmark")
df = list()
for milestone in inference_repo.get_milestones():
df.append(dict(Task=milestone.title, Start=milestone.due_date, Finish="2023-03-01", Resource="Not Started"))
colors = {'Not Started': 'rgb(220, 0, 0)',
'Incomplete': (1, 0.9, 0.16),
'Complete': 'rgb(0, 255, 100)'}
fig = ff.create_gantt(df, colors=colors, index_col='Resource', show_colorbar=True)
st.plotly_chart(fig)
|