Spaces:
Sleeping
Sleeping
Commit
·
4a989b6
1
Parent(s):
524e36b
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ for milestone in inference_repo.get_milestones():
|
|
20 |
for line in milestone.description.split('\n'):
|
21 |
tmp = line.split(":")
|
22 |
desc[tmp[0].lower()] = tmp[1].lower().strip()
|
23 |
-
df.append(dict(Task=
|
24 |
Start=desc['start date'],
|
25 |
Finish=milestone.due_on.strftime('%Y-%m-%d'),
|
26 |
Resource=desc['status'],
|
@@ -51,17 +51,17 @@ fig.update_xaxes(ticks= "outside",
|
|
51 |
griddash='dot',
|
52 |
gridcolor='white')
|
53 |
)
|
54 |
-
periods = pd.date_range(df[0]["Start"],df[0]["Finish"], freq='1D')
|
55 |
-
center_pos = math.floor(len(periods) / 2)
|
56 |
-
x_dates = periods[center_pos]
|
57 |
|
58 |
-
fig.add_annotation({
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
fig.update_layout(xaxis_range=[datetime.datetime(2022, 12, 30),
|
67 |
datetime.datetime(2023, 4, 2)])
|
|
|
20 |
for line in milestone.description.split('\n'):
|
21 |
tmp = line.split(":")
|
22 |
desc[tmp[0].lower()] = tmp[1].lower().strip()
|
23 |
+
df.append(dict(Task=f"""<a href="https://www.github.com/bigcode-project/bigcode-inference-benchmark/milestone/{milestone.number}", target="_black">{milestone.title}</a>""",
|
24 |
Start=desc['start date'],
|
25 |
Finish=milestone.due_on.strftime('%Y-%m-%d'),
|
26 |
Resource=desc['status'],
|
|
|
51 |
griddash='dot',
|
52 |
gridcolor='white')
|
53 |
)
|
54 |
+
# periods = pd.date_range(df[0]["Start"],df[0]["Finish"], freq='1D')
|
55 |
+
# center_pos = math.floor(len(periods) / 2)
|
56 |
+
# x_dates = periods[center_pos]
|
57 |
|
58 |
+
# fig.add_annotation({
|
59 |
+
# "x": x_dates,
|
60 |
+
# "y": 0,
|
61 |
+
# "text": string1,
|
62 |
+
# "align": "center",
|
63 |
+
# "showarrow":False,
|
64 |
+
# })
|
65 |
|
66 |
fig.update_layout(xaxis_range=[datetime.datetime(2022, 12, 30),
|
67 |
datetime.datetime(2023, 4, 2)])
|