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 src/shared/ui/FormComponents/fieldsUI/RadioButtons/RadioButtons.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/ProTema/first-start/resolve/main/src/shared/ui/FormComponents/fieldsUI/RadioButtons/RadioButtons.tsx
- Command line
-
hf download hf://ProTema/first-start/src/shared/ui/FormComponents/fieldsUI/RadioButtons/RadioButtons.tsx
-
curl -L -o RadioButtons.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/shared/ui/FormComponents/fieldsUI/RadioButtons/RadioButtons.tsx
1.87 kB
| import { classNames } from '@/shared/lib/classNames/classNames'; | |
| import cls from './RadioButtons.module.scss'; | |
| export enum RadioButtonsTheme { | |
| PARAM = 'param', | |
| } | |
| export interface IRadioButtons { | |
| labelName: string; | |
| value: string | number; | |
| } | |
| interface RadioButtonsProps { | |
| className?: string; | |
| name: string; | |
| title?: string; | |
| data: IRadioButtons[]; | |
| theme?: string; | |
| currentValue?: string | number; | |
| onChange?: (value: string) => void; | |
| } | |
| export const RadioButtons = (props: RadioButtonsProps) => { | |
| const { className, name, title, data, theme = '', currentValue, onChange } = props; | |
| return ( | |
| <div className={classNames(cls.RadioButtons, {}, [className, cls[theme]])}> | |
| {title && <p className={cls.listTitle}>{title}</p>} | |
| <div className={cls.list}> | |
| {data.map((radioButton, index) => ( | |
| <div key={`${name + (index + 1)}`} className={cls.item}> | |
| <input | |
| id={`${name + (index + 1)}`} | |
| type="radio" | |
| name={name} | |
| value={radioButton.value} | |
| className={`${cls.input} visually-hidden`} | |
| checked={radioButton.value === currentValue} | |
| onChange={(e) => onChange?.(e.target.value)} | |
| /> | |
| <label className={cls.name} htmlFor={`${name + (index + 1)}`}> | |
| <span className={cls.window}> | |
| <span className={cls.circle} /> | |
| </span> | |
| <span className={cls.text}>{radioButton.labelName}</span> | |
| </label> | |
| </div> | |
| ))} | |
| </div> | |
| </div> | |
| ); | |
| }; | |