@@ -215,24 +223,25 @@ def page(st, params):
{}
{}
- '''.format(y, url, x).replace('\n','')
+ '''.format(y, url, x).replace('\n', '')
# st.write(x, unsafe_allow_html = True)
xrow.append(x)
# Assemble info
- x=''
+ x = ''
- date_close = row.get('date_close','')
+ date_close = row.get('date_close', '')
y = ''
- if date_close!='' and date_close!=None:
- x += ' Closing date: **{}**\n'.format(date_close)
- y = date_close.replace(' ',' ')
+ if date_close != '' and date_close is not None:
+ x += ' Closing date: **{}**\n'.format(
+ date_close)
+ y = date_close.replace(' ', ' ')
xrow.append(y)
y = ''
- if row.get('date_close_extension',False):
+ if row.get('date_close_extension', False):
y = 'until done'
xrow.append(y)
@@ -245,11 +254,9 @@ def page(st, params):
#
# xrow.append(y)
-
-
awards = ''
- trophies = row.get('trophies',False)
+ trophies = row.get('trophies', False)
if trophies:
x += ' Trophy: **Yes**\n'
awards += '🏆'
@@ -263,16 +270,13 @@ def page(st, params):
#
# xrow.append(awards)
-
- if x!='':
- md += ' '+x
+ if x != '':
+ md += ' ' + x
# st.markdown(md)
-
data.append(xrow)
- ind+=1
-
+ ind += 1
import pandas as pd
import numpy as np
@@ -280,10 +284,14 @@ def page(st, params):
df = pd.DataFrame(data,
columns=['Challenge', 'Closing date', 'Extension'])
- df.index+=1
+ df.index += 1
# st.table(df)
- st.write(df.to_html(escape=False, justify='left'), unsafe_allow_html=True)
+ st.write(
+ df.to_html(
+ escape=False,
+ justify='left'),
+ unsafe_allow_html=True)
# Show selector for all
# challenge = st.selectbox('View past benchmarking, optimization, reproducibility and replicability challenges:',
@@ -294,16 +302,12 @@ def page(st, params):
# if challenge>0:
# artifact = artifacts[challenge]
-
-
-
# Process 1 challenge
if artifact is None:
-# st.markdown('#### Past or future challenges:')
+ # st.markdown('#### Past or future challenges:')
st.markdown('#### Future or past challenges')
-
for c in challenges:
prefix = c['prefix']
@@ -318,19 +322,9 @@ def page(st, params):
'''.format(str(ind), prefix, url, name)
- st.write(x, unsafe_allow_html = True)
-
- ind+=1
-
-
-
-
-
-
-
-
-
+ st.write(x, unsafe_allow_html=True)
+ ind += 1
else:
meta = artifact.meta
@@ -343,100 +337,104 @@ def page(st, params):
@@ -164,24 +170,25 @@ def page(st, params):
{}
{}
- '''.format(y, url, x).replace('\n','')
+ '''.format(y, url, x).replace('\n', '')
# st.write(x, unsafe_allow_html = True)
xrow.append(x)
# Assemble info
- x=''
+ x = ''
- date_close = row.get('date_close','')
+ date_close = row.get('date_close', '')
y = ''
- if date_close!='' and date_close!=None:
- x += ' Closing date: **{}**\n'.format(date_close)
- y = date_close.replace(' ',' ')
+ if date_close != '' and date_close is not None:
+ x += ' Closing date: **{}**\n'.format(
+ date_close)
+ y = date_close.replace(' ', ' ')
xrow.append(y)
y = ''
- if row.get('date_close_extension',False):
+ if row.get('date_close_extension', False):
y = 'until done'
xrow.append(y)
@@ -194,34 +201,30 @@ def page(st, params):
#
# xrow.append(y)
-
-
awards = ''
- trophies = row.get('trophies',False)
+ trophies = row.get('trophies', False)
if trophies:
x += ' Trophy: **Yes**\n'
awards += '🏆'
-
- prize = row.get('prize_short','')
- if prize!='':
- x += ' Prizes from [MLCommons organizations](https://mlcommons.org), [cTuning foundation](https://cTuning.org) and [cKnowledge.org](https:/cKnowledge.org): **{}**\n'.format(prize)
- if awards!='': awards+=' , '
+ prize = row.get('prize_short', '')
+ if prize != '':
+ x += ' Prizes from [MLCommons organizations](https://mlcommons.org), [cTuning foundation](https://cTuning.org) and [cKnowledge.org](https:/cKnowledge.org): **{}**\n'.format(
+ prize)
+ if awards != '':
+ awards += ' , '
awards += prize
xrow.append(awards)
-
- if x!='':
- md += ' '+x
+ if x != '':
+ md += ' ' + x
# st.markdown(md)
-
data.append(xrow)
- ind+=1
-
+ ind += 1
import pandas as pd
import numpy as np
@@ -229,10 +232,14 @@ def page(st, params):
df = pd.DataFrame(data,
columns=['Challenge', 'Closing date', 'Extension', 'Contributor award and prizes from