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/InquirerPy/containers/instruction.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/InquirerPy/containers/instruction.py
- Command line
-
hf download hf://realitisoft/ai-bot-test/venv/lib/python3.11/site-packages/InquirerPy/containers/instruction.py
-
curl -L -o instruction.py https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/InquirerPy/containers/instruction.py
1.27 kB
| """Module contains :class:`.InstructionWindow` which can be used to display long instructions.""" | |
| from typing import TYPE_CHECKING | |
| from prompt_toolkit.layout.containers import ConditionalContainer, Window | |
| from prompt_toolkit.layout.controls import FormattedTextControl | |
| if TYPE_CHECKING: | |
| from prompt_toolkit.filters.base import FilterOrBool | |
| from prompt_toolkit.formatted_text.base import AnyFormattedText | |
| class InstructionWindow(ConditionalContainer): | |
| """Conditional `prompt_toolkit` :class:`~prompt_toolkit.layout.Window` that displays long instructions. | |
| Args: | |
| message: Long instructions to display. | |
| filter: Condition to display the instruction window. | |
| """ | |
| def __init__(self, message: str, filter: "FilterOrBool", **kwargs) -> None: | |
| self._message = message | |
| super().__init__( | |
| Window( | |
| FormattedTextControl(text=self._get_message), | |
| dont_extend_height=True, | |
| **kwargs | |
| ), | |
| filter=filter, | |
| ) | |
| def _get_message(self) -> "AnyFormattedText": | |
| """Get long instruction to display. | |
| Returns: | |
| FormattedText in list of tuple format. | |
| """ | |
| return [("class:long_instruction", self._message)] | |