hi-melnikov commited on
Commit
34ecb22
1 Parent(s): 80fb33a

generating leaderboard on the fly

Browse files
Files changed (2) hide show
  1. .gitignore +184 -0
  2. app.py +7 -8
.gitignore CHANGED
@@ -1 +1,185 @@
1
  .ruff_cache
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .ruff_cache
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ pip-wheel-metadata/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ .python-version
87
+
88
+ # pipenv
89
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
90
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
91
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
92
+ # install all needed dependencies.
93
+ #Pipfile.lock
94
+
95
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
96
+ __pypackages__/
97
+
98
+ # Celery stuff
99
+ celerybeat-schedule
100
+ celerybeat.pid
101
+
102
+ # SageMath parsed files
103
+ *.sage.py
104
+
105
+ # Environments
106
+ .env
107
+ .venv
108
+ env/env.sh
109
+ venv/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+
131
+ # Files created by experiments
132
+ output/
133
+ snapshot/
134
+ *.m4a
135
+ notebooks/scratch.ipynb
136
+ notebooks/inspect.ipynb
137
+ notebooks/effects.ipynb
138
+ notebooks/*.ipynb
139
+ notebooks/*.gif
140
+ notebooks/*.wav
141
+ notebooks/*.mp4
142
+ *runs/
143
+ boards/
144
+ samples/
145
+ *.ipynb
146
+
147
+ results.json
148
+ metrics.csv
149
+ mprofile_*
150
+ mem.png
151
+
152
+ results/
153
+ mprofile*
154
+ *.png
155
+ # do not ignore the test wav file
156
+ !tests/audio/short_test_audio.wav
157
+ !tests/audio/output.wav
158
+ */.DS_Store
159
+ .DS_Store
160
+ env.sh
161
+ _codebraid/
162
+ **/*.html
163
+ **/*.exec.md
164
+ flagged/
165
+ log.txt
166
+ ckpt/
167
+ .syncthing*
168
+ tests/assets/
169
+ archived/
170
+
171
+ scratch/
172
+
173
+ runs-archive
174
+ lyrebird-audiotools
175
+ lyrebird-audio-codec
176
+ samples-*/**
177
+
178
+ gradio-outputs/
179
+ samples*/
180
+ models-all/
181
+ models.zip
182
+ audiotools/
183
+ descript-audio-codec/
184
+ # *.pth
185
+ .git-old
app.py CHANGED
@@ -16,12 +16,7 @@ from src.display.utils import (
16
  AutoEvalColumn,
17
  fields,
18
  )
19
- from src.envs import (
20
- API,
21
- H4_TOKEN,
22
- REPO_ID,
23
- RESET_JUDGEMENT_ENV,
24
- )
25
  from src.leaderboard.build_leaderboard import build_leadearboard_df
26
 
27
  os.environ["GRADIO_ANALYTICS_ENABLED"] = "false"
@@ -104,8 +99,12 @@ def update_board():
104
  if need_reset != "1":
105
  return
106
  os.environ[RESET_JUDGEMENT_ENV] = "0"
107
- subprocess.run(["python", "src/gen/gen_judgement.py"], check=False)
108
- subprocess.Popen("python3.src/gen/show_result.py --output")
 
 
 
 
109
 
110
 
111
  if __name__ == "__main__":
 
16
  AutoEvalColumn,
17
  fields,
18
  )
19
+ from src.envs import API, H4_TOKEN, HF_HOME, REPO_ID, RESET_JUDGEMENT_ENV
 
 
 
 
 
20
  from src.leaderboard.build_leaderboard import build_leadearboard_df
21
 
22
  os.environ["GRADIO_ANALYTICS_ENABLED"] = "false"
 
99
  if need_reset != "1":
100
  return
101
  os.environ[RESET_JUDGEMENT_ENV] = "0"
102
+
103
+ # gen_judgement_file = os.path.join(HF_HOME, "src/gen/gen_judgement.py")
104
+ # subprocess.run(["python3", gen_judgement_file], check=False)
105
+
106
+ show_result_file = os.path.join(HF_HOME, "src/gen/show_result.py")
107
+ subprocess.run("python3", show_result_file, "--output", check=False)
108
 
109
 
110
  if __name__ == "__main__":