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/setuptools/_path.py from realitisoft/ai-bot-test: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/setuptools/_path.py
- Command line
-
hf download hf://realitisoft/ai-bot-test/venv/lib/python3.11/site-packages/setuptools/_path.py
-
curl -L -o _path.py https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/setuptools/_path.py
749 Bytes
| import os | |
| from typing import Union | |
| _Path = Union[str, os.PathLike] | |
| def ensure_directory(path): | |
| """Ensure that the parent directory of `path` exists""" | |
| dirname = os.path.dirname(path) | |
| os.makedirs(dirname, exist_ok=True) | |
| def same_path(p1: _Path, p2: _Path) -> bool: | |
| """Differs from os.path.samefile because it does not require paths to exist. | |
| Purely string based (no comparison between i-nodes). | |
| >>> same_path("a/b", "./a/b") | |
| True | |
| >>> same_path("a/b", "a/./b") | |
| True | |
| >>> same_path("a/b", "././a/b") | |
| True | |
| >>> same_path("a/b", "./a/b/c/..") | |
| True | |
| >>> same_path("a/b", "../a/b/c") | |
| False | |
| >>> same_path("a", "a/b") | |
| False | |
| """ | |
| return os.path.normpath(p1) == os.path.normpath(p2) | |