Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label component now accepts file paths to .json files #2083

Merged
merged 2 commits into from
Aug 25, 2022
Merged

Conversation

abidlabs
Copy link
Member

This PR adds support for filepaths to the Label component. Specifically, if you pass in a filepath to a ".json" file that exists, the Label component will read it and display its contents instead of just displaying the string filepath.

This fixes: #2080

@github-actions
Copy link
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2083-all-demos

Copy link
Collaborator

@aliabid94 aliabid94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abidlabs
Copy link
Member Author

abidlabs commented Aug 25, 2022

Thanks for the review @aliabid94!

@abidlabs abidlabs merged commit adf52d2 into main Aug 25, 2022
@abidlabs abidlabs deleted the fixes-1967 branch August 25, 2022 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't load Image Classification model from hub and call it from another interface
2 participants