hamzabouajila commited on
Commit
e44a1e5
·
1 Parent(s): 646287f

Update project configuration and add main entry point

Browse files

- Enhance .gitignore to include .venv and uv.lock
- Define project metadata and dependencies in pyproject.toml
- Update OWNER variable in envs.py to reflect the correct organization
- Add .python-version file to specify Python version
- Implement main function in main.py to print a welcome message

Files changed (5) hide show
  1. .gitignore +2 -0
  2. .python-version +1 -0
  3. main.py +6 -0
  4. pyproject.toml +24 -0
  5. src/envs.py +1 -1
.gitignore CHANGED
@@ -1,5 +1,7 @@
1
  auto_evals/
2
  venv/
 
 
3
  __pycache__/
4
  .env
5
  .ipynb_checkpoints
 
1
  auto_evals/
2
  venv/
3
+ .venv/
4
+ uv.lock
5
  __pycache__/
6
  .env
7
  .ipynb_checkpoints
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.12
main.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def main():
2
+ print("Hello from tunisianleaderboard!")
3
+
4
+
5
+ if __name__ == "__main__":
6
+ main()
pyproject.toml CHANGED
@@ -1,3 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  [tool.ruff]
2
  # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
3
  select = ["E", "F"]
 
1
+ [project]
2
+ name = "tunisianleaderboard"
3
+ version = "0.1.0"
4
+ description = "Add your description here"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = [
8
+ "apscheduler>=3.11.0",
9
+ "black>=25.1.0",
10
+ "datasets>=3.6.0",
11
+ "gradio-client>=1.10.4",
12
+ "gradio-leaderboard==0.0.13",
13
+ "gradio[oauth]>=5.35.0",
14
+ "huggingface-hub>=0.18.0",
15
+ "matplotlib>=3.10.3",
16
+ "numpy>=2.3.1",
17
+ "pandas>=2.3.0",
18
+ "python-dateutil>=2.9.0.post0",
19
+ "sentencepiece>=0.2.0",
20
+ "tokenizers>=0.15.0",
21
+ "tqdm>=4.67.1",
22
+ "transformers>=4.53.1",
23
+ ]
24
+
25
  [tool.ruff]
26
  # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
27
  select = ["E", "F"]
src/envs.py CHANGED
@@ -6,7 +6,7 @@ from huggingface_hub import HfApi
6
  # ----------------------------------
7
  TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org
8
 
9
- OWNER = "demo-leaderboard-backend" # Change to your org - don't forget to create a results and request dataset, with the correct format!
10
  # ----------------------------------
11
 
12
  REPO_ID = f"{OWNER}/leaderboard"
 
6
  # ----------------------------------
7
  TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org
8
 
9
+ OWNER = "hamzabouajila" # Change to your org - don't forget to create a results and request dataset, with the correct format!
10
  # ----------------------------------
11
 
12
  REPO_ID = f"{OWNER}/leaderboard"