bulubula's picture
renw
bc0d85d
raw
history blame
1.98 kB
UPDATE_INTERVAL = 2 * 60 # 20 minutes in seconds
COMPETITIONS = {
"Melanoma-1": {
"entity": "safe-scan-ai",
"project": "melanoma-1",
"description": "This is a testnet competition for melanoma detection."
},
"Melanoma-testnet": {
"entity": "safe-scan-ai",
"project": "melanoma-testnet",
"description": "This is a testnet competition for melanoma detection."
},
# Add more projects as needed
}
HEADER = """
<h1 style='text-align: center;'>Safe Scan competition dashboard</h1>
<a href='https://safe-scan.ai/'><img src='https://img.shields.io/badge/Website-Project-blue?logo=google-chrome' alt='Safe Scan website'></a>
<a href='https://github.com/safe-scan-ai/cancer-ai'><img src='https://img.shields.io/badge/GitHub-Repository-blue?logo=github' alt='GitHub'></a>
<a href='https://discord.com/invite/sFyJ35yQ'><img src='https://img.shields.io/badge/Discord-Community-blue?logo=discord' alt='Discord'></a>
"""
TABLE_STYLE = """
<style>
.dataframe, .summary-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 16px;
min-width: 400px;
}
.dataframe th,
.dataframe td,
.summary-table th,
.summary-table td {
padding: 12px 15px;
border: 1px solid #CCCCCC;
text-align: left;
}
.dataframe thead th,
.summary-table th {
background-color: #333333;
color: #FFFFFF;
}
.dataframe tbody tr:nth-child(even),
.summary-table tr:nth-child(even) {
background-color: #F0F0F0;
}
.dataframe tbody tr:nth-child(odd),
.summary-table tr:nth-child(odd) {
background-color: #E0E0E0;
}
.dataframe tbody td,
.summary-table td {
color: #333333;
}
.dataframe tbody tr:hover,
.summary-table tr:hover {
background-color: #D1D1D1;
}
.table-container {
overflow-x: auto;
}
</style>
"""