Spaces:
Sleeping
Sleeping
czas utc
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import wandb
|
|
| 3 |
import pandas as pd
|
| 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, highlight_score_column, get_competitions
|
|
@@ -36,7 +37,7 @@ def update_leader_info(
|
|
| 36 |
best_model: Dict[str, Any]
|
| 37 |
) -> Dict[str, Any]:
|
| 38 |
start_date = best_model["Created At"]
|
| 39 |
-
current_date = datetime.datetime.now()
|
| 40 |
days_on_top = (current_date - start_date).days
|
| 41 |
|
| 42 |
if leader_info.get(competition) is None:
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
import os
|
| 5 |
import time
|
| 6 |
+
import pytz
|
| 7 |
import datetime
|
| 8 |
from typing import Dict, Any
|
| 9 |
from utils import fetch_competition_summary, fetch_models_evaluation, highlight_score_column, get_competitions
|
|
|
|
| 37 |
best_model: Dict[str, Any]
|
| 38 |
) -> Dict[str, Any]:
|
| 39 |
start_date = best_model["Created At"]
|
| 40 |
+
current_date = datetime.datetime.now(pytz.utc)
|
| 41 |
days_on_top = (current_date - start_date).days
|
| 42 |
|
| 43 |
if leader_info.get(competition) is None:
|