Skip to content

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

Merged
abidlabs merged 2 commits into
mainfrom
fixes-1967
Aug 25, 2022
Merged

Label component now accepts file paths to .json files #2083
abidlabs merged 2 commits into
mainfrom
fixes-1967

Conversation

@abidlabs
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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