multimodalart HF Staff commited on
Commit
2f3fb9a
·
verified ·
1 Parent(s): da20929

Minimal repro: negative gr.Number output crashes gr.Examples cache

Browse files
Files changed (1) hide show
  1. README.md +8 -6
README.md CHANGED
@@ -1,13 +1,15 @@
1
  ---
2
- title: Gr Number Negative Cache Bug
3
- emoji: 👁
4
- colorFrom: pink
5
- colorTo: blue
6
  sdk: gradio
7
  sdk_version: 6.19.0
8
- python_version: '3.13'
9
  app_file: app.py
10
  pinned: false
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
1
  ---
2
+ title: gr.Number negative cache bug
3
+ emoji: 🐛
4
+ colorFrom: red
5
+ colorTo: gray
6
  sdk: gradio
7
  sdk_version: 6.19.0
 
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
+ Minimal repro for the `gr.Examples` + negative `gr.Number` cache crash.
13
+
14
+ Click the example → `json.decoder.JSONDecodeError` (in `Number.read_from_flag`).
15
+ Flip the `fn` to return a positive number and it reads back fine.