Skip to content

Commit a45b844

Browse files
authored
Improve electron example template (#342)
* 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
1 parent e7b71b8 commit a45b844

File tree

5 files changed

+5841
-45
lines changed

5 files changed

+5841
-45
lines changed

examples/electron/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@ An example project to show how to run 🤗 Transformers in an [Electron](https:/
1414
npm install
1515
```
1616

17-
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:
18-
```
19-
distilbert-base-uncased-finetuned-sst-2-english/
20-
├── config.json
21-
├── tokenizer.json
22-
├── tokenizer_config.json
23-
└── onnx/
24-
├── model.onnx
25-
└── model_quantized.onnx
26-
```
27-
2817
1. Run the application:
2918
```bash
3019
npm run start

examples/electron/models/.gitignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)