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/component.js from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 1.82 kB
-
https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/common/component.js
- Command line
-
hf download hf://ProTema/first-start/plop/generation/common/component.js
-
curl -L -o component.js https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/common/component.js
1.82 kB
| const component = (plop) => { | |
| plop.setGenerator('component', { | |
| 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: 'В какой слайс?', | |
| }, | |
| { | |
| type: 'input', | |
| name: 'name', | |
| message: 'Название компонента?', | |
| }, | |
| ], | |
| actions: [ | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/ui/{{name}}/{{name}}.tsx', | |
| templateFile: './templates/component/component.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/ui/{{name}}/{{name}}.module.scss', | |
| templateFile: './templates/component/component.style.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/ui/{{name}}/{{name}}.stories.tsx', | |
| templateFile: './templates/component/component.stories.hbs', | |
| }, | |
| ], | |
| }); | |
| }; | |
| module.exports = component; | |