Spaces:
Sleeping
Sleeping
typing
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import pandas as pd
|
|
| 4 |
import os
|
| 5 |
import time
|
| 6 |
import datetime
|
|
|
|
| 7 |
from utils import fetch_competition_summary, fetch_models_evaluation, get_all_competition_summary, highlight_score_column, competition_summary_table
|
| 8 |
# from dotenv import load_dotenv
|
| 9 |
from cfg import *
|
|
@@ -29,7 +30,11 @@ else:
|
|
| 29 |
wandb_api = wandb.Api()
|
| 30 |
|
| 31 |
@st.cache_data
|
| 32 |
-
def update_leader_info(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
if leader_info.get(competition) is None:
|
| 34 |
leader_info[competition] = {
|
| 35 |
"Miner hotkey": best_model["Miner hotkey"],
|
|
|
|
| 4 |
import os
|
| 5 |
import time
|
| 6 |
import datetime
|
| 7 |
+
from typing import Dict, Any
|
| 8 |
from utils import fetch_competition_summary, fetch_models_evaluation, get_all_competition_summary, highlight_score_column, competition_summary_table
|
| 9 |
# from dotenv import load_dotenv
|
| 10 |
from cfg import *
|
|
|
|
| 30 |
wandb_api = wandb.Api()
|
| 31 |
|
| 32 |
@st.cache_data
|
| 33 |
+
def update_leader_info(
|
| 34 |
+
leader_info: Dict[str, Dict[str, Any]],
|
| 35 |
+
competition: str,
|
| 36 |
+
best_model: Dict[str, Any]
|
| 37 |
+
) -> Dict[str, Any]:
|
| 38 |
if leader_info.get(competition) is None:
|
| 39 |
leader_info[competition] = {
|
| 40 |
"Miner hotkey": best_model["Miner hotkey"],
|