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/widgets/widget.js from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/widgets/widget.js
- Command line
-
hf download hf://ProTema/first-start/plop/generation/widgets/widget.js
-
curl -L -o widget.js https://huggingface.co/ProTema/first-start/resolve/main/plop/generation/widgets/widget.js
1.34 kB
| const widget = (plop) => { | |
| plop.setGenerator('widget', { | |
| description: 'Создает слайс в виджете', | |
| prompts: [ | |
| { | |
| type: 'input', | |
| name: 'name', | |
| message: 'Название слайса?', | |
| }, | |
| ], | |
| actions: (data) => { | |
| data.layerName = 'widgets'; | |
| return [ | |
| { | |
| type: 'add', | |
| path: '../src/widgets/{{name}}/ui/{{name}}.tsx', | |
| templateFile: './templates/component/component.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/widgets/{{name}}/ui/{{name}}.module.scss', | |
| templateFile: './templates/component/component.style.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/widgets/{{name}}/ui/{{name}}.stories.tsx', | |
| templateFile: './templates/component/component.stories.hbs', | |
| }, | |
| { | |
| type: 'add', | |
| path: '../src/widgets/{{name}}/index.ts', | |
| templateFile: './templates/layers/rootIndex/rootIndex.hbs', | |
| }, | |
| ]; | |
| }, | |
| }); | |
| }; | |
| module.exports = widget; | |