File size: 2,088 Bytes
bc0d85d
 
cc1b673
bc0d85d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
UPDATE_INTERVAL = 2 * 60  # 20 minutes in seconds

CONFIG_URL = "https://raw.githubusercontent.com/safe-scan-ai/cancer-ai/main/config/competition_config.json"

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>
    """