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/Auth/lib/query/useSignInByEmail.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/features/Auth/lib/query/useSignInByEmail.tsx
- Command line
-
hf download hf://ProTema/first-start/src/features/Auth/lib/query/useSignInByEmail.tsx
-
curl -L -o useSignInByEmail.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/features/Auth/lib/query/useSignInByEmail.tsx
623 Bytes
| import { useMutation } from '@tanstack/react-query'; | |
| import { useNavigate } from 'react-router-dom'; | |
| import { signInByEmail } from '../../api/signInByEmail'; | |
| import { USER_ACCESS_TOKEN_KEY, USER_AUTH_DATA } from '@/shared/const/localStorage'; | |
| export const useSignInByEmail = () => { | |
| const navigate = useNavigate(); | |
| return useMutation({ | |
| mutationFn: signInByEmail, | |
| onSuccess: (data) => { | |
| localStorage.setItem(USER_AUTH_DATA, JSON.stringify(data.user)); | |
| localStorage.setItem(USER_ACCESS_TOKEN_KEY, JSON.stringify(data.token)); | |
| navigate('/'); | |
| }, | |
| }); | |
| }; | |