Skip to content

Commit

Permalink
Improve electron example template (#342)
Browse files Browse the repository at this point in the history
* Update transformers.js version

* Use Singleton object in electron tutorial

* Create package-lock.json

* Remove models folder

* Remove step for copying models to local folder
  • Loading branch information
xenova authored Oct 4, 2023
1 parent e7b71b8 commit a45b844
Show file tree
Hide file tree
Showing 5 changed files with 5,841 additions and 45 deletions.
11 changes: 0 additions & 11 deletions examples/electron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ An example project to show how to run 🤗 Transformers in an [Electron](https:/
npm install
```

1. Add your model files to `./models/`. For this demo, we use [distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english/tree/main) from the Hugging Face Hub. It should look something like this:
```
distilbert-base-uncased-finetuned-sst-2-english/
├── config.json
├── tokenizer.json
├── tokenizer_config.json
└── onnx/
├── model.onnx
└── model_quantized.onnx
```

1. Run the application:
```bash
npm run start
Expand Down
15 changes: 0 additions & 15 deletions examples/electron/models/.gitignore

This file was deleted.

Loading

0 comments on commit a45b844

Please sign in to comment.