Spaces:
Sleeping
Sleeping
Jimin Huang
commited on
Commit
·
6875c1b
1
Parent(s):
aa3f2d4
feature: change to TheFinAI
Browse files
backend/app/config/hf_config.py
CHANGED
|
@@ -12,7 +12,7 @@ from app.utils.logging import LogFormatter
|
|
| 12 |
logger = logging.getLogger(__name__)
|
| 13 |
|
| 14 |
# Organization or user who owns the datasets
|
| 15 |
-
HF_ORGANIZATION = "
|
| 16 |
|
| 17 |
# Get HF token directly from environment
|
| 18 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
|
|
| 12 |
logger = logging.getLogger(__name__)
|
| 13 |
|
| 14 |
# Organization or user who owns the datasets
|
| 15 |
+
HF_ORGANIZATION = "TheFinAI"
|
| 16 |
|
| 17 |
# Get HF token directly from environment
|
| 18 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
backend/utils/last_activity.py
CHANGED
|
@@ -28,7 +28,7 @@ if not HF_TOKEN:
|
|
| 28 |
api = HfApi(token=HF_TOKEN)
|
| 29 |
|
| 30 |
# Default organization
|
| 31 |
-
HF_ORGANIZATION = os.getenv('HF_ORGANIZATION', '
|
| 32 |
|
| 33 |
def get_last_votes(limit: int = 5) -> List[Dict]:
|
| 34 |
"""Get the last votes from the votes dataset"""
|
|
@@ -161,4 +161,4 @@ def main():
|
|
| 161 |
logger.error(f"Global error: {str(e)}")
|
| 162 |
|
| 163 |
if __name__ == "__main__":
|
| 164 |
-
main()
|
|
|
|
| 28 |
api = HfApi(token=HF_TOKEN)
|
| 29 |
|
| 30 |
# Default organization
|
| 31 |
+
HF_ORGANIZATION = os.getenv('HF_ORGANIZATION', 'TheFinAI')
|
| 32 |
|
| 33 |
def get_last_votes(limit: int = 5) -> List[Dict]:
|
| 34 |
"""Get the last votes from the votes dataset"""
|
|
|
|
| 161 |
logger.error(f"Global error: {str(e)}")
|
| 162 |
|
| 163 |
if __name__ == "__main__":
|
| 164 |
+
main()
|
backend/utils/sync_datasets_locally.py
CHANGED
|
@@ -7,7 +7,7 @@ from huggingface_hub import HfApi, snapshot_download, upload_folder, create_repo
|
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
|
| 9 |
# Configure source and destination usernames
|
| 10 |
-
SOURCE_USERNAME = "
|
| 11 |
DESTINATION_USERNAME = "tfrere"
|
| 12 |
|
| 13 |
# Get the backend directory path
|
|
|
|
| 7 |
from dotenv import load_dotenv
|
| 8 |
|
| 9 |
# Configure source and destination usernames
|
| 10 |
+
SOURCE_USERNAME = "TheFinAI"
|
| 11 |
DESTINATION_USERNAME = "tfrere"
|
| 12 |
|
| 13 |
# Get the backend directory path
|
frontend/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"name": "open-
|
| 3 |
"version": "0.1.0",
|
| 4 |
"private": true,
|
| 5 |
"dependencies": {
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "open-greek-finllm-leaderboard",
|
| 3 |
"version": "0.1.0",
|
| 4 |
"private": true,
|
| 5 |
"dependencies": {
|
frontend/src/config/auth.js
CHANGED
|
@@ -2,6 +2,6 @@ export const HF_CONFIG = {
|
|
| 2 |
CLIENT_ID: "18fe6b93-6921-444c-9a20-5c22c578f2d8",
|
| 3 |
STORAGE_KEY: "hf_oauth",
|
| 4 |
SCOPE: "openid profile",
|
| 5 |
-
PROD_URL: "
|
| 6 |
DEV_URL: "http://localhost:7860"
|
| 7 |
-
};
|
|
|
|
| 2 |
CLIENT_ID: "18fe6b93-6921-444c-9a20-5c22c578f2d8",
|
| 3 |
STORAGE_KEY: "hf_oauth",
|
| 4 |
SCOPE: "openid profile",
|
| 5 |
+
PROD_URL: "TheFinAI-open-greek-finance-llm-leaderboard.hf.space",
|
| 6 |
DEV_URL: "http://localhost:7860"
|
| 7 |
+
};
|
frontend/src/pages/LeaderboardPage/components/Leaderboard/utils/columnUtils.js
CHANGED
|
@@ -276,7 +276,7 @@ const RankIndicator = ({ rank, previousRank, mode }) => {
|
|
| 276 |
|
| 277 |
const getDetailsUrl = (modelName) => {
|
| 278 |
const formattedName = modelName.replace("/", "__");
|
| 279 |
-
return `https://huggingface.co/datasets/
|
| 280 |
};
|
| 281 |
|
| 282 |
const HeaderLabel = ({ label, tooltip, className, isSorted }) => (
|
|
|
|
| 276 |
|
| 277 |
const getDetailsUrl = (modelName) => {
|
| 278 |
const formattedName = modelName.replace("/", "__");
|
| 279 |
+
return `https://huggingface.co/datasets/TheFinAI/lm-eval-results-private`;
|
| 280 |
};
|
| 281 |
|
| 282 |
const HeaderLabel = ({ label, tooltip, className, isSorted }) => (
|