Instructions to use ProTema/first-start with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BERTopic
How to use ProTema/first-start with BERTopic:
from bertopic import BERTopic model = BERTopic.load("ProTema/first-start") - Notebooks
- Google Colab
- Kaggle
Download plop/generation/common/store.js from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/common/store.js
- Command line
-
hf download hf://ProTema/first-start/plop/generation/common/store.js
-
curl -L -o store.js https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/common/store.js
1.4 kB
| const store = (plop) => { | |
| plop.setGenerator('store', { | |
| description: 'Создает стор', | |
| prompts: [ | |
| { | |
| type: 'list', | |
| name: 'layerName', | |
| message: 'В какой слой положить?', | |
| choices: [ | |
| { | |
| name: 'entities', | |
| value: 'entities', | |
| }, | |
| { | |
| name: 'features', | |
| value: 'features', | |
| }, | |
| { | |
| name: 'widgets', | |
| value: 'widgets', | |
| }, | |
| ], | |
| }, | |
| { | |
| type: 'input', | |
| name: 'sliceName', | |
| message: 'В какой слайс?', | |
| }, | |
| ], | |
| actions: [ | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/model/store/use{{sliceName}}Store.ts', | |
| templateFile: './templates/store/store.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/model/types/{{lowerCase sliceName}}Schema.ts', | |
| templateFile: './templates/store/storeSchema.hbs', | |
| }, | |
| ], | |
| }); | |
| }; | |
| module.exports = store; | |