apsys commited on
Commit
137d615
1 Parent(s): a67391c
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -34,8 +34,6 @@ 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
- shutil.rmtree("./m_data", ignore_errors=True)
38
- shutil.rmtree("./data", ignore_errors=True)
39
  download_openbench()
40
 
41
  def restart_space():
@@ -128,8 +126,13 @@ def update_board():
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}]
 
34
  # Start ephemeral Spaces on PRs (see config in README.md)
35
  enable_space_ci()
36
 
 
 
37
  download_openbench()
38
 
39
  def restart_space():
 
126
  return
127
  os.environ[RESET_JUDGEMENT_ENV] = "0"
128
  import shutil
129
+
130
+ # `shutil.rmtree("./m_data")` is a Python command that removes a directory and all its contents
131
+ # recursively. In this specific context, it is used to delete the directory named "m_data" along
132
+ # with all its files and subdirectories. This command helps in cleaning up the existing data in
133
+ # the "m_data" directory before downloading new dataset files into it.
134
+ # shutil.rmtree("./m_data")
135
+ # shutil.rmtree("./data")
136
  download_dataset("Vikhrmodels/s-openbench-eval", "m_data")
137
  import glob
138
  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}]