Clémentine commited on
Commit
395eff6
1 Parent(s): ab6f548

update for caching

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. src/envs.py +4 -2
app.py CHANGED
@@ -1,6 +1,3 @@
1
- import json
2
- import os
3
-
4
  import gradio as gr
5
  import pandas as pd
6
  from apscheduler.schedulers.background import BackgroundScheduler
 
 
 
 
1
  import gradio as gr
2
  import pandas as pd
3
  from apscheduler.schedulers.background import BackgroundScheduler
src/envs.py CHANGED
@@ -14,8 +14,10 @@ PRIVATE_RESULTS_REPO = "open-llm-leaderboard/private-results"
14
 
15
  IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", True))
16
 
17
- EVAL_REQUESTS_PATH = "eval-queue"
18
- EVAL_RESULTS_PATH = "eval-results"
 
 
19
 
20
  EVAL_REQUESTS_PATH_PRIVATE = "eval-queue-private"
21
  EVAL_RESULTS_PATH_PRIVATE = "eval-results-private"
 
14
 
15
  IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", True))
16
 
17
+ CACHE_PATH="/data"
18
+
19
+ EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
20
+ EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
21
 
22
  EVAL_REQUESTS_PATH_PRIVATE = "eval-queue-private"
23
  EVAL_RESULTS_PATH_PRIVATE = "eval-results-private"