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

🎉 @huggingface/widgets #297

Merged
merged 22 commits into from
Nov 20, 2023
Merged

🎉 @huggingface/widgets #297

merged 22 commits into from
Nov 20, 2023

Conversation

coyotte508
Copy link
Member

@coyotte508 coyotte508 commented Nov 19, 2023

@coyotte508 coyotte508 marked this pull request as ready for review November 20, 2023 20:31
@coyotte508 coyotte508 changed the title 🎉 Start on migrating huggingface-widgets 🎉 @huggingface/widgets Nov 20, 2023
@coyotte508 coyotte508 merged commit 430e5d9 into main Nov 20, 2023
2 checks passed
@coyotte508 coyotte508 deleted the hugging-widgets branch November 20, 2023 20:34
@julien-c
Copy link
Member

cc @mishig25

Copy link
Member

Choose a reason for hiding this comment

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

the whole interfaces folder should be in its own package IMO

Copy link
Member Author

Choose a reason for hiding this comment

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

yes there's already a part in @huggingface/tasks but we can probably move more in @huggingface/widgets-data

Copy link
Member

Choose a reason for hiding this comment

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

it's more central than widgets-data, i had an idea for a name, let me try to find it again

Copy link
Member

Choose a reason for hiding this comment

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

aarg can't find it, but what about:

@huggingface/pipeline-types
or
@huggingface/interfaces
or
@huggingface/types (this one prob looks weird)

Also ping @osanseviero on naming the root package that will include those files:

image

WDYT?

Copy link
Member Author

@coyotte508 coyotte508 Nov 21, 2023

Choose a reason for hiding this comment

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

Libraries are used in @huggingface/tasks (because TASKS_DATA contains some libraries), so we should probably move Libraries nad LibrariesToTask to @huggingface/tasks (and maybe rename @huggingface/tasks to something else?) - ModelLibrary was already moved there for now.

The remaining Types.ts, DefaultWidget.ts and InferenceDisplayability.ts are all related to the inference widget

Copy link
Member

Choose a reason for hiding this comment

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

Types.ts is more central than widgets, which should be mostly self-contained

Otherwise let's move those files to @huggingface/tasks then. I think it works too

Copy link
Member Author

Choose a reason for hiding this comment

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

ah right Types.ts contains the model card metadata type

Copy link
Member

Choose a reason for hiding this comment

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

ok let's move the whole interfaces folder to the root of @huggingface/tasks ok?

@mishig25
Copy link
Collaborator

lgtm !

kohsheen1234 pushed a commit to kohsheen1234/huggingface.js that referenced this pull request Nov 24, 2023
Follow up to huggingface#297 &
huggingface#317 (comment)

1. Moved deps to devDeps (cc: @coyotte508 please check)
2. Prettier was not running on svelte files. Upgrading prettier fixed
the issue
ArsalaBangash pushed a commit to ArsalaBangash/huggingface.js that referenced this pull request Nov 28, 2023
Co-authored-by: beurkinger <[email protected]>
Co-authored-by: Mishig <[email protected]>
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.

3 participants