Instructions to use realitisoft/ai-bot-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use realitisoft/ai-bot-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="realitisoft/ai-bot-test")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("realitisoft/ai-bot-test") model = AutoModelForSpeechSeq2Seq.from_pretrained("realitisoft/ai-bot-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download venv/lib/python3.11/site-packages/prompt_toolkit/selection.py from realitisoft/ai-bot-test: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/prompt_toolkit/selection.py
- Command line
-
hf download hf://realitisoft/ai-bot-test/venv/lib/python3.11/site-packages/prompt_toolkit/selection.py
-
curl -L -o selection.py https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/prompt_toolkit/selection.py
1.27 kB
| """ | |
| Data structures for the selection. | |
| """ | |
| from __future__ import annotations | |
| from enum import Enum | |
| __all__ = [ | |
| "SelectionType", | |
| "PasteMode", | |
| "SelectionState", | |
| ] | |
| class SelectionType(Enum): | |
| """ | |
| Type of selection. | |
| """ | |
| #: Characters. (Visual in Vi.) | |
| CHARACTERS = "CHARACTERS" | |
| #: Whole lines. (Visual-Line in Vi.) | |
| LINES = "LINES" | |
| #: A block selection. (Visual-Block in Vi.) | |
| BLOCK = "BLOCK" | |
| class PasteMode(Enum): | |
| EMACS = "EMACS" # Yank like emacs. | |
| VI_AFTER = "VI_AFTER" # When pressing 'p' in Vi. | |
| VI_BEFORE = "VI_BEFORE" # When pressing 'P' in Vi. | |
| class SelectionState: | |
| """ | |
| State of the current selection. | |
| :param original_cursor_position: int | |
| :param type: :class:`~.SelectionType` | |
| """ | |
| def __init__( | |
| self, | |
| original_cursor_position: int = 0, | |
| type: SelectionType = SelectionType.CHARACTERS, | |
| ) -> None: | |
| self.original_cursor_position = original_cursor_position | |
| self.type = type | |
| self.shift_mode = False | |
| def enter_shift_mode(self) -> None: | |
| self.shift_mode = True | |
| def __repr__(self) -> str: | |
| return f"{self.__class__.__name__}(original_cursor_position={self.original_cursor_position!r}, type={self.type!r})" | |