AndrewRqy commited on
Commit
115b4a3
·
1 Parent(s): 18d3b9f

Bump Gradio to 5.x and bind launch to

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +2 -0
  3. requirements.txt +5 -7
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🌲
4
  colorFrom: indigo
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 4.44.1
8
  python_version: "3.10"
9
  suggested_hardware: cpu-basic
10
  app_file: app.py
 
4
  colorFrom: indigo
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 5.0.1
8
  python_version: "3.10"
9
  suggested_hardware: cpu-basic
10
  app_file: app.py
app.py CHANGED
@@ -4989,6 +4989,8 @@ def main() -> int:
4989
  # would suppress the "Running on http://..." console banner, which
4990
  # is useful info — leave it on.
4991
  demo.launch(
 
 
4992
  allowed_paths=[str(_HERE / "assets")],
4993
  show_api=False,
4994
  show_error=True,
 
4989
  # would suppress the "Running on http://..." console banner, which
4990
  # is useful info — leave it on.
4991
  demo.launch(
4992
+ server_name="0.0.0.0",
4993
+ server_port=7860,
4994
  allowed_paths=[str(_HERE / "assets")],
4995
  show_api=False,
4996
  show_error=True,
requirements.txt CHANGED
@@ -1,10 +1,8 @@
1
- # Gradio frontend.
2
- # Pin huggingface_hub<0.34 because gradio 4.44.x still imports HfFolder,
3
- # which was removed from huggingface_hub in 0.34. Without this pin HF's
4
- # Space env auto-resolves huggingface_hub to a too-new version and the
5
- # import in gradio/oauth.py fails on boot.
6
- gradio>=4.44,<6
7
- huggingface_hub>=0.23,<0.34
8
 
9
  # OpenAI client — used as the SDK for the Modal-hosted vLLM endpoint
10
  openai>=1.40
 
1
+ # Gradio frontend. Pinned to 5.x — 4.44 has a Jinja2 cache-key bug
2
+ # (TypeError: unhashable type: 'dict') that fires on every HTTP request
3
+ # with the Jinja2 version HF Spaces installs in 2026, and also drags
4
+ # along the HfFolder import that newer huggingface_hub removed.
5
+ gradio>=5.0,<6
 
 
6
 
7
  # OpenAI client — used as the SDK for the Modal-hosted vLLM endpoint
8
  openai>=1.40