multimodalart HF Staff
Minimal repro: negative gr.Number output crashes gr.Examples cache
2f3fb9a verified A newer version of the Gradio SDK is available: 6.20.0
metadata
title: gr.Number negative cache bug
emoji: 🐛
colorFrom: red
colorTo: gray
sdk: gradio
sdk_version: 6.19.0
app_file: app.py
pinned: false
Minimal repro for the gr.Examples + negative gr.Number cache crash.
Click the example → json.decoder.JSONDecodeError (in Number.read_from_flag).
Flip the fn to return a positive number and it reads back fine.