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/api/createPost.ts from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/api/createPost.ts
- Command line
-
hf download hf://ProTema/first-start/src/features/Post/api/createPost.ts
-
curl -L -o createPost.ts https://huggingface.co/ProTema/first-start/resolve/main/src/features/Post/api/createPost.ts
475 Bytes
| import { $api } from '@/shared/api/axiosInstance'; | |
| import { PostType } from '@/entities/Post'; | |
| import { PostFormType } from '../ui/PostForm/PostForm'; | |
| type CreatePostProps = { | |
| user_id: number; | |
| } & PostFormType; | |
| type CreatePostResponse = { | |
| status: number; | |
| message: string; | |
| post: PostType; | |
| }; | |
| export const createPost = async (props: CreatePostProps) => { | |
| const { data } = await $api.post<CreatePostResponse>(`/posts/create`, props); | |
| return data; | |
| }; | |