You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @wdlm520, thanks for opening this issue. Lists are rendered as dictionaries by the gr.JSON() component with the index representing the key. I do feel like we should have option to keep the as lists, although we might not be able to get around to this soon. If you'd like to open a PR, we're happy to review!
As another option, we've made it possible for Gradio users to create their own custom components -- meaning that you can write some Python and JavaScript (Svelte), and publish it as a Gradio component. You can use it in your own Gradio apps, or share it so that anyone can use it in their Gradio apps.
abidlabs
changed the title
JSON index bug
Render lists as lists instead of dictionaries in gr.JSONJan 5, 2024
abidlabs
changed the title
Render lists as lists instead of dictionaries in gr.JSON
Render lists as lists instead of numerically-indexed dictionaries in gr.JSONJan 11, 2024
Describe the bug
The following effect is the output of the JSON component of Gradio
How can I remove the Index such as 0,1
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: