ljvmiranda921 commited on
Commit
6a4841e
·
1 Parent(s): b5b19aa

Update README with instructions on how to run locally

Browse files
Files changed (3) hide show
  1. README.md +11 -1
  2. requirements.txt +1 -0
  3. src/about.py +1 -1
README.md CHANGED
@@ -4,15 +4,25 @@ This is a fork of the [leaderboard demo from HuggingFace](https://huggingface.co
4
 
5
  ## Set-up and installation
6
 
7
- To start development, clone the repository and install the dependencies:
 
8
 
9
  ```sh
10
  python -m venv venv
11
  source venv/bin/activate
12
  git clone git@github.com:filbench/hf-leaderboard-backend.git
13
  pip install -r requirements.txt
 
14
  ```
15
 
 
 
 
 
 
 
 
 
16
  ## Updating the HuggingFace Space
17
 
18
  All development should happen in this GitHub remote.
 
4
 
5
  ## Set-up and installation
6
 
7
+ To start development, clone the repository and install the dependencies.
8
+ Make sure to also install the pre-commit hooks so that formatting is uniform across the codebase.
9
 
10
  ```sh
11
  python -m venv venv
12
  source venv/bin/activate
13
  git clone git@github.com:filbench/hf-leaderboard-backend.git
14
  pip install -r requirements.txt
15
+ pre-commit install
16
  ```
17
 
18
+ To view the leaderboard **locally**, then run the following command:
19
+
20
+ ```sh
21
+ gradio app.py
22
+ ```
23
+
24
+ This will launch the leaderboard (by default in `localhost:7860`) in hot-reload mode, so you can see the changes as you edit the source code.
25
+
26
  ## Updating the HuggingFace Space
27
 
28
  All development should happen in this GitHub remote.
requirements.txt CHANGED
@@ -9,6 +9,7 @@ huggingface-hub>=0.18.0
9
  matplotlib
10
  numpy
11
  pandas
 
12
  python-dateutil
13
  sentencepiece
14
  tokenizers>=0.15.0
 
9
  matplotlib
10
  numpy
11
  pandas
12
+ pre-commit
13
  python-dateutil
14
  sentencepiece
15
  tokenizers>=0.15.0
src/about.py CHANGED
@@ -26,7 +26,7 @@ TITLE = """<h1 align="center" id="space-title">Demo leaderboard</h1>"""
26
 
27
  # What does your leaderboard evaluate?
28
  INTRODUCTION_TEXT = """
29
- Intro text
30
  """
31
 
32
  # Which evaluations are you running? how can people reproduce what you have?
 
26
 
27
  # What does your leaderboard evaluate?
28
  INTRODUCTION_TEXT = """
29
+ FilBench
30
  """
31
 
32
  # Which evaluations are you running? how can people reproduce what you have?