Don Rishabh commited on
Commit
837c5e2
·
1 Parent(s): 805f4c4

space-demo: pin Python 3.11 + exact gradio + jinja2<3.1.5 (defuse 3.13 fallout)

Browse files
space-demo/README.md CHANGED
@@ -9,6 +9,7 @@ app_file: app.py
9
  pinned: false
10
  license: mit
11
  hardware: t4-small
 
12
  short_description: "RL-compressed prompts for Llama 3.2 (Qwen agent)"
13
  tags:
14
  - prompt-engineering
 
9
  pinned: false
10
  license: mit
11
  hardware: t4-small
12
+ python_version: "3.11"
13
  short_description: "RL-compressed prompts for Llama 3.2 (Qwen agent)"
14
  tags:
15
  - prompt-engineering
space-demo/requirements.txt CHANGED
@@ -5,8 +5,8 @@ accelerate>=0.34
5
  # huggingface_hub 1.x removed HfFolder; gradio still imports it. Pin <1.0
6
  # until both ecosystems converge.
7
  huggingface_hub>=0.26,<1.0
8
- gradio>=4.40,<5.0
 
 
 
9
  sentencepiece
10
- # Python 3.13 removed audioop from stdlib; pydub (pulled by gradio)
11
- # imports it. audioop-lts is the maintained drop-in replacement.
12
- audioop-lts; python_version >= "3.13"
 
5
  # huggingface_hub 1.x removed HfFolder; gradio still imports it. Pin <1.0
6
  # until both ecosystems converge.
7
  huggingface_hub>=0.26,<1.0
8
+ gradio==4.44.0
9
+ # Pin jinja2 — gradio 4.x cache machinery breaks on jinja2 3.1.5+ with
10
+ # "unhashable type: dict" on TemplateResponse.
11
+ jinja2>=3.1.0,<3.1.5
12
  sentencepiece