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/lib/query/useCreatePost.tsx from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/lib/query/useCreatePost.tsx
- Command line
-
hf download hf://ProTema/first-start/src/features/Post/lib/query/useCreatePost.tsx
-
curl -L -o useCreatePost.tsx https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/lib/query/useCreatePost.tsx
380 Bytes
| import { useMutation, useQueryClient } from '@tanstack/react-query'; | |
| import { createPost } from '../../api/createPost'; | |
| export const useCreatePost = () => { | |
| const queryClient = useQueryClient(); | |
| return useMutation({ | |
| mutationFn: createPost, | |
| onSuccess: () => { | |
| queryClient.invalidateQueries({ queryKey: ['fetchPosts'] }); | |
| }, | |
| }); | |
| }; | |