hub-docs icon indicating copy to clipboard operation
hub-docs copied to clipboard

Truncated Python version in README.md preview (3.10 -> 3.1)

Open catwell opened this issue 5 months ago • 2 comments

In Spaces, in the README.md preview tab, the Python version is reported as 3.1 when it is actually 3.10.

This is not a frontend bug, the backend returns this (see devtools screenshot below).

To reproduce you can check it here.

Image Image Image

catwell avatar Sep 16 '25 13:09 catwell

lol.

And it seems it tries to build the Space with the wrong version number, and fails.

As a workaround, it seems to work if you use a string for the version number.

pcuenca avatar Sep 16 '25 13:09 pcuenca

Ah yes, that's a YAML-like syntax... What a nightmare 😆

(The error you have on your fork is unrelated, it's because this space requires a HF_TOKEN that allows gated models.)

catwell avatar Sep 16 '25 13:09 catwell