Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ st.set_page_config(layout="wide")
|
|
9 |
|
10 |
import pandas as pd
|
11 |
import numpy as np
|
12 |
-
REMOTE_LEADERBOARD_URL = "https://
|
13 |
def iswin(score_i, score_j, block_i, block_j):
|
14 |
MAX_PENALTY = 0.03 # Adjust this value as needed
|
15 |
penalty = MAX_PENALTY
|
@@ -79,6 +79,7 @@ def leaderboard_dashboard():
|
|
79 |
|
80 |
# Convert the data to a DataFrame
|
81 |
minerboard = pd.DataFrame(minerboard_data)
|
|
|
82 |
|
83 |
minerboard['status'] = minerboard['status'].map(lambda status: status_emojis.get(status, status))
|
84 |
# Sort the minerboard_winrate by the total_score column
|
|
|
9 |
|
10 |
import pandas as pd
|
11 |
import numpy as np
|
12 |
+
REMOTE_LEADERBOARD_URL = "https://sn58-validation.dippy-bittensor-subnet.com/minerboard"
|
13 |
def iswin(score_i, score_j, block_i, block_j):
|
14 |
MAX_PENALTY = 0.03 # Adjust this value as needed
|
15 |
penalty = MAX_PENALTY
|
|
|
79 |
|
80 |
# Convert the data to a DataFrame
|
81 |
minerboard = pd.DataFrame(minerboard_data)
|
82 |
+
minerboard.loc[minerboard['status'] == 'FAILED', 'total_score'] = 0
|
83 |
|
84 |
minerboard['status'] = minerboard['status'].map(lambda status: status_emojis.get(status, status))
|
85 |
# Sort the minerboard_winrate by the total_score column
|