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/ThemeButton/ui/ThemeButton.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/features/ThemeButton/ui/ThemeButton.tsx
- Command line
-
hf download hf://ProTema/first-start/src/features/ThemeButton/ui/ThemeButton.tsx
-
curl -L -o ThemeButton.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/features/ThemeButton/ui/ThemeButton.tsx
798 Bytes
| import { classNames } from '@/shared/lib/classNames/classNames'; | |
| import { Theme, useTheme } from '@/app/providers/ThemeProviders'; | |
| import Sun from '@/shared/assets/icons/sun.svg?react'; | |
| import Moon from '@/shared/assets/icons/moon.svg?react'; | |
| import { Button } from '@/shared/ui/Button'; | |
| import cls from './ThemeButton.module.scss'; | |
| interface ThemeButtonProps { | |
| className?: string; | |
| } | |
| export const ThemeButton = (props: ThemeButtonProps) => { | |
| const { className } = props; | |
| const { theme, toggleTheme } = useTheme(); | |
| return ( | |
| <Button | |
| className={classNames(cls.ThemeButton, {}, [className])} | |
| onClick={() => toggleTheme(theme === Theme.DARK ? Theme.LIGHT : Theme.DARK)} | |
| icon={theme === Theme.DARK ? <Sun /> : <Moon />} | |
| /> | |
| ); | |
| }; | |