Lukas Korganas commited on
Commit
8f10d91
·
1 Parent(s): 64c6b78

Fix Gradio SDK version pin

Browse files
Files changed (2) hide show
  1. README.md +3 -6
  2. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🚀
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.x
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
@@ -19,7 +19,7 @@ Pass any `transformers.pipeline()` config as JSON, run inference on ZeroGPU RTX
19
  ```python
20
  from gradio_client import Client
21
 
22
- client = Client("your-username/your-space")
23
  result = client.predict(
24
  pipeline_config={"task": "text-generation", "model": "HuggingFaceTB/SmolLM2-135M-Instruct"},
25
  inputs="Hello world",
@@ -39,12 +39,10 @@ Upload → Space builds (~30-60s) → done.
39
 
40
  ## 4. Test it
41
 
42
- Replace `your-username/your-space` with your actual Space name:
43
-
44
  ```python
45
  from gradio_client import Client
46
 
47
- client = Client("your-username/dynamic-transformers-api")
48
 
49
  # Text generation
50
  print(client.predict(
@@ -63,4 +61,3 @@ print(client.predict(
63
  ))
64
  ```
65
 
66
-
 
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: "6.22.0"
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
19
  ```python
20
  from gradio_client import Client
21
 
22
+ client = Client("DoctorSlimm/dynamic-transformers-api")
23
  result = client.predict(
24
  pipeline_config={"task": "text-generation", "model": "HuggingFaceTB/SmolLM2-135M-Instruct"},
25
  inputs="Hello world",
 
39
 
40
  ## 4. Test it
41
 
 
 
42
  ```python
43
  from gradio_client import Client
44
 
45
+ client = Client("DoctorSlimm/dynamic-transformers-api")
46
 
47
  # Text generation
48
  print(client.predict(
 
61
  ))
62
  ```
63
 
 
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.0
2
  transformers
3
  torch
4
  accelerate
 
1
+ gradio==6.22.0
2
  transformers
3
  torch
4
  accelerate