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/EditPost/EditPost.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 961 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/ui/EditPost/EditPost.tsx
- Command line
-
hf download hf://ProTema/first-start/src/features/Post/ui/EditPost/EditPost.tsx
-
curl -L -o EditPost.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/ui/EditPost/EditPost.tsx
961 Bytes
| import { classNames } from '@/shared/lib/classNames/classNames'; | |
| import { Button, ButtonSize, ButtonTheme } from '@/shared/ui/Button'; | |
| import { usePostStore } from '../../model/store/usePostStore'; | |
| import cls from './EditPost.module.scss'; | |
| interface EditPostProps { | |
| className?: string; | |
| postId: number; | |
| } | |
| export const EditPost = (props: EditPostProps) => { | |
| const { className, postId } = props; | |
| const toggleModal = usePostStore((state) => state.toggleModal); | |
| const changingEditablePost = usePostStore((state) => state.changingEditablePost); | |
| const openEditPostForm = (id: number) => { | |
| changingEditablePost(id); | |
| toggleModal(); | |
| }; | |
| return ( | |
| <Button | |
| className={classNames(cls.EditPost, {}, [className])} | |
| theme={ButtonTheme.PRIMARY} | |
| size={ButtonSize.S} | |
| onClick={() => openEditPostForm(postId)} | |
| > | |
| Изменить | |
| </Button> | |
| ); | |
| }; | |