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/features/Post/ui/DeletePost/DeletePost.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/ui/DeletePost/DeletePost.tsx
- Command line
-
hf download hf://ProTema/first-start/src/features/Post/ui/DeletePost/DeletePost.tsx
-
curl -L -o DeletePost.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/ui/DeletePost/DeletePost.tsx
758 Bytes
| import { classNames } from '@/shared/lib/classNames/classNames'; | |
| import { Button, ButtonSize, ButtonTheme } from '@/shared/ui/Button'; | |
| import { useDeletePost } from '../../lib/query/useDeletePost'; | |
| import cls from './DeletePost.module.scss'; | |
| interface DeletePostProps { | |
| className?: string; | |
| postId: number; | |
| } | |
| export const DeletePost = (props: DeletePostProps) => { | |
| const { className, postId } = props; | |
| const { mutate: onDelete } = useDeletePost(); | |
| return ( | |
| <Button | |
| className={classNames(cls.DeletePost, {}, [className])} | |
| theme={ButtonTheme.PRIMARY} | |
| size={ButtonSize.S} | |
| onClick={() => onDelete({ post_id: postId })} | |
| > | |
| Удалить | |
| </Button> | |
| ); | |
| }; | |