Daniel Kantor commited on
Commit
b134c4d
·
1 Parent(s): a8cdc48

read data form stacklok org

Browse files
backend/app/asgi.py CHANGED
@@ -103,4 +103,4 @@ async def startup_event():
103
 
104
  # Setup cache
105
  setup_cache()
106
- logger.info(LogFormatter.success("FastAPI Cache initialized with in-memory backend"))
 
103
 
104
  # Setup cache
105
  setup_cache()
106
+ logger.info(LogFormatter.success("FastAPI Cache initialized with in-memory backend"))
backend/app/config/base.py CHANGED
@@ -20,7 +20,7 @@ HAS_HIGHER_RATE_LIMIT = []
20
 
21
  # HuggingFace configuration
22
  HF_TOKEN = os.environ.get("HF_TOKEN")
23
- HF_ORGANIZATION = "open-llm-leaderboard"
24
  API = {
25
  "INFERENCE": "https://api-inference.huggingface.co/models",
26
  "HUB": "https://huggingface.co"
@@ -35,4 +35,4 @@ EVAL_CACHE = CACHE_ROOT / "eval-queue"
35
 
36
  # Repository configuration
37
  QUEUE_REPO = f"{HF_ORGANIZATION}/requests"
38
- EVAL_REQUESTS_PATH = EVAL_CACHE / "eval_requests.jsonl"
 
20
 
21
  # HuggingFace configuration
22
  HF_TOKEN = os.environ.get("HF_TOKEN")
23
+ HF_ORGANIZATION = "stacklok"
24
  API = {
25
  "INFERENCE": "https://api-inference.huggingface.co/models",
26
  "HUB": "https://huggingface.co"
 
35
 
36
  # Repository configuration
37
  QUEUE_REPO = f"{HF_ORGANIZATION}/requests"
38
+ EVAL_REQUESTS_PATH = EVAL_CACHE / "eval_requests.jsonl"
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', 'open-llm-leaderboard')
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', 'stacklok')
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 = "open-llm-leaderboard"
11
  DESTINATION_USERNAME = "tfrere"
12
 
13
  # Get the backend directory path
@@ -127,4 +127,4 @@ def copy_datasets():
127
  logger.error(f"❌ Global error: {str(e)}")
128
 
129
  if __name__ == "__main__":
130
- copy_datasets()
 
7
  from dotenv import load_dotenv
8
 
9
  # Configure source and destination usernames
10
+ SOURCE_USERNAME = "stacklok"
11
  DESTINATION_USERNAME = "tfrere"
12
 
13
  # Get the backend directory path
 
127
  logger.error(f"❌ Global error: {str(e)}")
128
 
129
  if __name__ == "__main__":
130
+ copy_datasets()
frontend/package.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "name": "open-llm-leaderboard",
3
  "version": "0.1.0",
4
  "private": true,
5
  "dependencies": {
 
1
  {
2
+ "name": "llm-security-leaderboard",
3
  "version": "0.1.0",
4
  "private": true,
5
  "dependencies": {
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/open-llm-leaderboard/${formattedName}-details`;
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/llm-security-leaderboard/${formattedName}-details`;
280
  };
281
 
282
  const HeaderLabel = ({ label, tooltip, className, isSorted }) => (