Spaces:
Runtime error
Runtime error
Commit
•
9e2baa6
1
Parent(s):
85f8582
Update background_task.py
Browse files- background_task.py +3 -1
background_task.py
CHANGED
@@ -4,6 +4,7 @@ import subprocess
|
|
4 |
import pandas as pd
|
5 |
from datetime import datetime
|
6 |
from huggingface_hub import HfApi, Repository
|
|
|
7 |
|
8 |
DATASET_REPO_URL = "https://huggingface.co/datasets/huggingface-projects/bot-fight-data"
|
9 |
DATASET_TEMP_REPO_URL = "https://huggingface.co/datasets/huggingface-projects/temp-match-results"
|
@@ -214,7 +215,8 @@ def get_elo_data() -> pd.DataFrame:
|
|
214 |
:return: ELO data as a pandas DataFrame
|
215 |
"""
|
216 |
repo.git_pull()
|
217 |
-
data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
|
|
|
218 |
return data
|
219 |
|
220 |
|
|
|
4 |
import pandas as pd
|
5 |
from datetime import datetime
|
6 |
from huggingface_hub import HfApi, Repository
|
7 |
+
from utils import *
|
8 |
|
9 |
DATASET_REPO_URL = "https://huggingface.co/datasets/huggingface-projects/bot-fight-data"
|
10 |
DATASET_TEMP_REPO_URL = "https://huggingface.co/datasets/huggingface-projects/temp-match-results"
|
|
|
215 |
:return: ELO data as a pandas DataFrame
|
216 |
"""
|
217 |
repo.git_pull()
|
218 |
+
data = pd.read_csv(os.path.join(DATASET_REPO_URL, "resolve", "main", ELO_FILENAME))
|
219 |
+
|
220 |
return data
|
221 |
|
222 |
|