Mihai Băluță-Cujbă commited on
Commit
46f111a
·
1 Parent(s): c878863

Update Gradio SDK version to 5.49.1 in README.md, requirements.txt, and huggingface.yml for consistency

Browse files
Files changed (3) hide show
  1. README.md +4 -2
  2. huggingface.yml +1 -0
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🧠
4
  colorFrom: purple
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: "5.0.0"
8
  app_file: app.py
9
  pinned: false
10
  ---
@@ -21,7 +21,7 @@ A Hugging Face Space (Gradio) app that classifies individual code review comment
21
 
22
  ## Quickstart (Local)
23
  1. Create and activate a Python 3.9+ virtual environment.
24
- 2. Install dependencies:
25
  ```bash
26
  pip install -r requirements.txt
27
  ```
@@ -31,6 +31,8 @@ A Hugging Face Space (Gradio) app that classifies individual code review comment
31
  ```
32
  4. Open the local Gradio URL printed in the terminal and submit a comment or GitHub link.
33
 
 
 
34
  ### Optional environment variables
35
  - `GITHUB_TOKEN` – supply a personal access token to increase GitHub rate limits when fetching comments via URL. This can be set locally or by adding a Space secret on Hugging Face.
36
 
 
4
  colorFrom: purple
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: "5.49.1"
8
  app_file: app.py
9
  pinned: false
10
  ---
 
21
 
22
  ## Quickstart (Local)
23
  1. Create and activate a Python 3.9+ virtual environment.
24
+ 2. Install dependencies (Gradio is pinned to 5.49.1):
25
  ```bash
26
  pip install -r requirements.txt
27
  ```
 
31
  ```
32
  4. Open the local Gradio URL printed in the terminal and submit a comment or GitHub link.
33
 
34
+ Note: The project pins Gradio to version 5.49.1 in `requirements.txt`, and the Space is configured with `sdk_version: 5.49.1` in `huggingface.yml` to ensure consistent behavior across local and cloud deployments.
35
+
36
  ### Optional environment variables
37
  - `GITHUB_TOKEN` – supply a personal access token to increase GitHub rate limits when fetching comments via URL. This can be set locally or by adding a Space secret on Hugging Face.
38
 
huggingface.yml CHANGED
@@ -1,3 +1,4 @@
1
  sdk: gradio
 
2
  app_file: app.py
3
  python_version: 3.10
 
1
  sdk: gradio
2
+ sdk_version: 5.49.1
3
  app_file: app.py
4
  python_version: 3.10
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=5.0.0,<6
2
  transformers>=4.39.0
3
  torch>=2.1.0
4
  requests>=2.31.0
 
1
+ gradio==5.49.1
2
  transformers>=4.39.0
3
  torch>=2.1.0
4
  requests>=2.31.0