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/lib/hooks/useDebounce/useDebounce.ts from ProTema/first-start: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/ProTema/first-start/resolve/main/src/shared/lib/hooks/useDebounce/useDebounce.ts
- Command line
-
hf download hf://ProTema/first-start/src/shared/lib/hooks/useDebounce/useDebounce.ts
-
curl -L -o useDebounce.ts https://huggingface.co/ProTema/first-start/resolve/main/src/shared/lib/hooks/useDebounce/useDebounce.ts
401 Bytes
| import { useEffect, useState } from 'react'; | |
| export function useDebounce<T>(value: T, delay?: number): T { | |
| const [debouncedValue, setDebouncedValue] = useState<T>(value); | |
| useEffect(() => { | |
| const timer = setTimeout(() => setDebouncedValue(value), delay || 500); | |
| return () => { | |
| clearTimeout(timer); | |
| }; | |
| }, [value, delay]); | |
| return debouncedValue; | |
| } | |