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/shared/api/axiosInstance.ts from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 866 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/shared/api/axiosInstance.ts
- Command line
-
hf download hf://ProTema/first-start/src/shared/api/axiosInstance.ts
-
curl -L -o axiosInstance.ts https://huggingface.co/ProTema/first-start/resolve/main/src/shared/api/axiosInstance.ts
866 Bytes
| import axios from 'axios'; | |
| import { USER_ACCESS_TOKEN_KEY } from '@/shared/const/localStorage'; | |
| const generateAxios = (contentType: string) => { | |
| return axios.create({ | |
| baseURL: import.meta.env.VITE_API_URL, | |
| headers: { | |
| 'Content-Type': contentType, | |
| Authorization: localStorage.getItem(USER_ACCESS_TOKEN_KEY) || '', | |
| }, | |
| }); | |
| // .interceptors.response.use( | |
| // (response) => response, | |
| // (error) => { | |
| // if (error instanceof AxiosError && error.response?.status === 401) { | |
| // if (!window.location.toString().match(/login$/)) { | |
| // window.location.href = '/login'; | |
| // } | |
| // } | |
| // } | |
| // ); | |
| }; | |
| export const $api = generateAxios('application/json'); | |
| export const $apiFormData = generateAxios('multipart/form-data'); | |