Lj Miranda commited on
Commit
94a0ade
·
unverified ·
2 Parent(s): e2c374a 2b8a748

Merge pull request #6 from filbench/convert-to-uv

Browse files
Files changed (5) hide show
  1. .python-version +1 -0
  2. README.md +3 -3
  3. main.py +6 -0
  4. pyproject.toml +28 -0
  5. uv.lock +0 -0
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.10
README.md CHANGED
@@ -18,14 +18,14 @@ This is a fork of the [leaderboard demo from HuggingFace](https://huggingface.co
18
  ## Set-up and installation
19
 
20
  To start development, clone the repository and install the dependencies.
 
21
  Make sure to also install the pre-commit hooks so that formatting is uniform across the codebase.
22
 
23
  ```sh
24
  git clone git@github.com:filbench/hf-leaderboard-backend.git
25
  cd hf-leaderboard-backend
26
- python -m venv venv
27
- source venv/bin/activate
28
- pip install -r requirements.txt
29
  pre-commit install
30
  ```
31
 
 
18
  ## Set-up and installation
19
 
20
  To start development, clone the repository and install the dependencies.
21
+ This assumes you have `uv` installed.
22
  Make sure to also install the pre-commit hooks so that formatting is uniform across the codebase.
23
 
24
  ```sh
25
  git clone git@github.com:filbench/hf-leaderboard-backend.git
26
  cd hf-leaderboard-backend
27
+ uv sync
28
+ source .venv/bin/activate
 
29
  pre-commit install
30
  ```
31
 
main.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def main():
2
+ print("Hello from hf-leaderboard-backend!")
3
+
4
+
5
+ if __name__ == "__main__":
6
+ main()
pyproject.toml CHANGED
@@ -1,3 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  [tool.ruff]
2
  # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
3
  select = ["E", "F"]
 
1
+ [project]
2
+ name = "hf-leaderboard-backend"
3
+ version = "0.1.0"
4
+ description = "Add your description here"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ dependencies = [
8
+ "apscheduler>=3.11.0",
9
+ "black>=25.1.0",
10
+ "datasets>=4.0.0",
11
+ "gradio-client>=1.10.4",
12
+ "gradio-leaderboard==0.0.13",
13
+ "gradio[oauth]>=5.36.2",
14
+ "huggingface-hub>=0.18.0",
15
+ "matplotlib>=3.10.3",
16
+ "numpy>=2.2.6",
17
+ "pandas>=2.3.1",
18
+ "plotly>=6.2.0",
19
+ "pre-commit>=4.2.0",
20
+ "pydantic==2.10.6",
21
+ "python-dateutil>=2.9.0.post0",
22
+ "pytz>=2025.2",
23
+ "sentencepiece>=0.2.0",
24
+ "tokenizers>=0.15.0",
25
+ "tqdm>=4.67.1",
26
+ "transformers>=4.53.2",
27
+ ]
28
+
29
  [tool.ruff]
30
  # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
31
  select = ["E", "F"]
uv.lock ADDED
The diff for this file is too large to render. See raw diff