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/pip/_internal/utils/distutils_args.py from realitisoft/ai-bot-test: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/pip/_internal/utils/distutils_args.py
- Command line
-
hf download hf://realitisoft/ai-bot-test/venv/lib/python3.11/site-packages/pip/_internal/utils/distutils_args.py
-
curl -L -o distutils_args.py https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/pip/_internal/utils/distutils_args.py
1.12 kB
| from getopt import GetoptError, getopt | |
| from typing import Dict, List | |
| _options = [ | |
| "exec-prefix=", | |
| "home=", | |
| "install-base=", | |
| "install-data=", | |
| "install-headers=", | |
| "install-lib=", | |
| "install-platlib=", | |
| "install-purelib=", | |
| "install-scripts=", | |
| "prefix=", | |
| "root=", | |
| "user", | |
| ] | |
| def parse_distutils_args(args: List[str]) -> Dict[str, str]: | |
| """Parse provided arguments, returning an object that has the matched arguments. | |
| Any unknown arguments are ignored. | |
| """ | |
| result = {} | |
| for arg in args: | |
| try: | |
| parsed_opt, _ = getopt(args=[arg], shortopts="", longopts=_options) | |
| except GetoptError: | |
| # We don't care about any other options, which here may be | |
| # considered unrecognized since our option list is not | |
| # exhaustive. | |
| continue | |
| if not parsed_opt: | |
| continue | |
| option = parsed_opt[0] | |
| name_from_parsed = option[0][2:].replace("-", "_") | |
| value_from_parsed = option[1] or "true" | |
| result[name_from_parsed] = value_from_parsed | |
| return result | |