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/form.js from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/common/form.js
- Command line
-
hf download hf://ProTema/first-start/plop/generation/common/form.js
-
curl -L -o form.js https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/common/form.js
1.76 kB
| const form = (plop) => { | |
| plop.setGenerator('form', { | |
| 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/form/form.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/ui/{{name}}/{{name}}.module.scss', | |
| templateFile: './templates/form/form.style.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/{{layerName}}/{{sliceName}}/ui/{{name}}/{{name}}.stories.tsx', | |
| templateFile: './templates/form/form.stories.hbs', | |
| }, | |
| ], | |
| }); | |
| }; | |
| module.exports = form; | |