Instructions to use Wellz1000/hermes-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- HERMES
How to use Wellz1000/hermes-2 with HERMES:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download web/src/contexts/useSystemActions.ts from Wellz1000/hermes-2: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/Wellz1000/hermes-2/resolve/main/web/src/contexts/useSystemActions.ts
- Command line
-
hf download hf://Wellz1000/hermes-2/web/src/contexts/useSystemActions.ts
-
curl -L -o useSystemActions.ts https://huggingface.co/Wellz1000/hermes-2/resolve/main/web/src/contexts/useSystemActions.ts
384 Bytes
| import { useContext } from "react"; | |
| import { | |
| SystemActionsContext, | |
| type SystemActionsState, | |
| } from "./system-actions-context"; | |
| export function useSystemActions(): SystemActionsState { | |
| const ctx = useContext(SystemActionsContext); | |
| if (!ctx) { | |
| throw new Error( | |
| "useSystemActions must be used within a SystemActionsProvider", | |
| ); | |
| } | |
| return ctx; | |
| } | |