Repository navigation
data: add gradio 4.0 migration hints from its own warnings and changelog - #21
Merged
Merged
Conversation
gradio.inputs and gradio.outputs point at gradio.components, quoting the 3.x deprecation warnings in the two modules; gradio.Variable points at gradio.State and gr.Audio/gr.Video's source argument at sources, both quoting the 4.0.0 changelog.
Owner
|
Thanks, @rise11hx-cmyk, merged. On a gradio 3.50.2 → 4.0.0 index, the upgrade check now gives a fix for all five: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19.
A new
# gradio-4group, five hints, every quote copied from gradio's own text:gradio.inputsgradio.componentsgradio/inputs.pyatgradio@3.50.2, L16-L19gradio.outputsgradio.componentsgradio/outputs.pyatgradio@3.50.2, L16-L20gradio.Variablegradio.StateCHANGELOG.mdgradio.Audio.__init__(source)sourcesgradio.Video.__init__(source)sourcesThe 3.x warnings are two adjacent string literals in
outputs.py; the checker joins them (a Python file's adjacent literals count as the one message they build), so the quote is the sentence a user actually saw.Left out, as the issue asks: the removals the changelog gives no replacement for —
.style(),.update(),Carousel.Checks
The index check also confirms the argument hints:
gradio.Audio.__init__andgradio.Video.__init__recorded bothsourceandsources, so the old name is a parameter that function really took and the new name is one it really takes.The full
-m networkrun cannot finish on this network (it times out on pre-existing hint pages such asdocs.sqlalchemy.org), so I ran the sametests/test_curated.py::_page+_quotednarrowed to the gradio group, including the#L16-L19line windows:One thing this does not show
Curated hints enter the index at assembly (
deptime/ingest/curated.py), so a prebuilt index fromdeptime index pullstill reports its default hint —deptime check gradio 4.0.0 gradio.Variablesays"hint": "seen in 3.16.0..3.50.2", and the same is true for the merged polars hint (polars.DataFrame.melt→seen in 0.15.1..1.44.2). Sodeptime checkis not evidence here; the checks above are. If you want an end-to-end confirmation it needs an index rebuilt locally.CHANGELOG.mdgets an### Addedentry under[Unreleased].