apsys commited on
Commit
a67391c
1 Parent(s): f212dc5
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -3,7 +3,7 @@ import os
3
  os.makedirs("tmp", exist_ok=True)
4
  os.environ['TMP_DIR'] = "tmp"
5
  import subprocess
6
-
7
  import gradio as gr
8
  from apscheduler.schedulers.background import BackgroundScheduler
9
  from gradio_leaderboard import Leaderboard, SelectColumns
@@ -34,7 +34,8 @@ logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(
34
  # Start ephemeral Spaces on PRs (see config in README.md)
35
  enable_space_ci()
36
 
37
-
 
38
  download_openbench()
39
 
40
  def restart_space():
@@ -127,8 +128,8 @@ def update_board():
127
  return
128
  os.environ[RESET_JUDGEMENT_ENV] = "0"
129
  import shutil
130
- shutil.rmtree("m_data")
131
- shutil.rmtree("data")
132
  download_dataset("Vikhrmodels/s-openbench-eval", "m_data")
133
  import glob
134
  data_list = [{"musicmc": 0.3021276595744681, "lawmc": 0.2800829875518672, "model": "apsys/saiga_3_8b", "moviesmc": 0.3472222222222222, "booksmc": 0.2800829875518672, "model_dtype": "torch.float16", "ppl": 0}]
 
3
  os.makedirs("tmp", exist_ok=True)
4
  os.environ['TMP_DIR'] = "tmp"
5
  import subprocess
6
+ import shutil
7
  import gradio as gr
8
  from apscheduler.schedulers.background import BackgroundScheduler
9
  from gradio_leaderboard import Leaderboard, SelectColumns
 
34
  # Start ephemeral Spaces on PRs (see config in README.md)
35
  enable_space_ci()
36
 
37
+ shutil.rmtree("./m_data", ignore_errors=True)
38
+ shutil.rmtree("./data", ignore_errors=True)
39
  download_openbench()
40
 
41
  def restart_space():
 
128
  return
129
  os.environ[RESET_JUDGEMENT_ENV] = "0"
130
  import shutil
131
+ shutil.rmtree("./m_data")
132
+ shutil.rmtree("./data")
133
  download_dataset("Vikhrmodels/s-openbench-eval", "m_data")
134
  import glob
135
  data_list = [{"musicmc": 0.3021276595744681, "lawmc": 0.2800829875518672, "model": "apsys/saiga_3_8b", "moviesmc": 0.3472222222222222, "booksmc": 0.2800829875518672, "model_dtype": "torch.float16", "ppl": 0}]