emmanuelakbi commited on
Commit
11bc8fb
·
1 Parent(s): 07ff2cb

Upgrade to Gradio 5 to resolve aiofiles conflict with crewai

Browse files

gradio 4.44 caps aiofiles<24 but crewai 1.14 pins aiofiles~=24.1, which
blocked the HF Space from resolving requirements. Gradio 5 dropped the
cap, and all 47 frontend tests pass under gradio 5.50.

Files changed (2) hide show
  1. README.md +1 -1
  2. requirements.txt +7 -4
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🤖
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 4.44.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 5.1.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
requirements.txt CHANGED
@@ -2,10 +2,13 @@
2
  #
3
  # This file is consumed by the Space builder and installs into a CPU-only
4
  # environment (the GPU inference runs elsewhere on AMD Developer Cloud).
5
- # Pins here should stay tight to avoid drifting into incompatible combinations.
 
6
 
7
- # Gradio frontend framework
8
- gradio==4.44.1
 
 
9
 
10
  # Agent orchestration
11
  crewai==1.14.4
@@ -19,5 +22,5 @@ pandas-ta-remake==1.0.4
19
  # pandas-ta-remake 1.0.4 still imports pkg_resources; Setuptools >=81 removed it.
20
  setuptools<81
21
 
22
- # Tokenizers 0.20.x lacks DecodeStream on Py3.13; crewai needs >=0.21.
23
  tokenizers>=0.21,<1
 
2
  #
3
  # This file is consumed by the Space builder and installs into a CPU-only
4
  # environment (the GPU inference runs elsewhere on AMD Developer Cloud).
5
+ # Pins here stay tight where they matter and relax where the resolver
6
+ # needs room (notably gradio vs crewai on aiofiles).
7
 
8
+ # Gradio frontend framework. Pinned to 5.x because 4.44 caps aiofiles<24
9
+ # and crewai 1.14 pins aiofiles~=24.1 — the two are resolver-incompatible
10
+ # in a single environment.
11
+ gradio>=5.0,<6
12
 
13
  # Agent orchestration
14
  crewai==1.14.4
 
22
  # pandas-ta-remake 1.0.4 still imports pkg_resources; Setuptools >=81 removed it.
23
  setuptools<81
24
 
25
+ # Tokenizers 0.20.x lacks DecodeStream on Python 3.13; crewai needs >=0.21.
26
  tokenizers>=0.21,<1