-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Publish Plugin to PyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
pipx install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Build and Publish | ||
run: | | ||
cd web | ||
npm install | ||
npm run build | ||
poetry build | ||
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.TEST_PYPI_PASSWORD }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish Plugin to Test PyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
pipx install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Set up Test PyPI Repository | ||
run: | | ||
poetry config repositories.test-pypi https://test.pypi.org/legacy/ | ||
- name: Build and Publish | ||
run: | | ||
cd web | ||
npm install | ||
npm run build | ||
poetry build | ||
poetry publish -r test-pypi -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.TEST_PYPI_PASSWORD }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# graphbook-huggingface | ||
The huggingface plugin for Graphbook | ||
<p align="center"> | ||
<a href="https://graphbook.ai"> | ||
<img src="https://github.com/graphbookai/graphbook/blob/main/docs/_static/graphbook.png?raw=true" alt="Logo" width=256> | ||
</a> | ||
|
||
<h1 align="center">Graphbook Huggingface</h1> | ||
|
||
<p align="center"> | ||
A Huggingface Plugin to drag-and-drop models and datasets onto Graphbook workflows | ||
</p> | ||
</p> | ||
|
||
This plugin contains a web panel for searching and drag-and-dropping models and datasets from [Huggingface Hub](https://huggingface.co/) onto their graphbook workflows. | ||
It also contains the following nodes: | ||
|
||
* `HuggingfacePipeline` for model usage from transformers package | ||
* `HuggingfaceDataset` for dataset usage from the datasets package | ||
* `AssignModelOutputsToNotes` to assign HF model outputs to incoming Notes | ||
|
||
## Getting started | ||
1. `pip install graphbook_huggingface` | ||
1. `graphbook --config hf.config.yaml` | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
plugins: | ||
- graphbook_huggingface |
This file contains 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
This file contains 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