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/_distutils/log.py from realitisoft/ai-bot-test: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/setuptools/_distutils/log.py
- Command line
-
hf download hf://realitisoft/ai-bot-test/venv/lib/python3.11/site-packages/setuptools/_distutils/log.py
-
curl -L -o log.py https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/setuptools/_distutils/log.py
1.2 kB
| """ | |
| A simple log mechanism styled after PEP 282. | |
| Retained for compatibility and should not be used. | |
| """ | |
| import logging | |
| import warnings | |
| from ._log import log as _global_log | |
| DEBUG = logging.DEBUG | |
| INFO = logging.INFO | |
| WARN = logging.WARN | |
| ERROR = logging.ERROR | |
| FATAL = logging.FATAL | |
| log = _global_log.log | |
| debug = _global_log.debug | |
| info = _global_log.info | |
| warn = _global_log.warning | |
| error = _global_log.error | |
| fatal = _global_log.fatal | |
| def set_threshold(level): | |
| orig = _global_log.level | |
| _global_log.setLevel(level) | |
| return orig | |
| def set_verbosity(v): | |
| if v <= 0: | |
| set_threshold(logging.WARN) | |
| elif v == 1: | |
| set_threshold(logging.INFO) | |
| elif v >= 2: | |
| set_threshold(logging.DEBUG) | |
| class Log(logging.Logger): | |
| """distutils.log.Log is deprecated, please use an alternative from `logging`.""" | |
| def __init__(self, threshold=WARN): | |
| warnings.warn(Log.__doc__) # avoid DeprecationWarning to ensure warn is shown | |
| super().__init__(__name__, level=threshold) | |
| def threshold(self): | |
| return self.level | |
| def threshold(self, level): | |
| self.setLevel(level) | |
| warn = logging.Logger.warning | |