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/command/bdist_rpm.py from realitisoft/ai-bot-test: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/setuptools/command/bdist_rpm.py
- Command line
-
hf download hf://realitisoft/ai-bot-test/venv/lib/python3.11/site-packages/setuptools/command/bdist_rpm.py
-
curl -L -o bdist_rpm.py https://huggingface.co/realitisoft/ai-bot-test/resolve/main/venv/lib/python3.11/site-packages/setuptools/command/bdist_rpm.py
1.18 kB
| import distutils.command.bdist_rpm as orig | |
| import warnings | |
| from setuptools import SetuptoolsDeprecationWarning | |
| class bdist_rpm(orig.bdist_rpm): | |
| """ | |
| Override the default bdist_rpm behavior to do the following: | |
| 1. Run egg_info to ensure the name and version are properly calculated. | |
| 2. Always run 'install' using --single-version-externally-managed to | |
| disable eggs in RPM distributions. | |
| """ | |
| def run(self): | |
| warnings.warn( | |
| "bdist_rpm is deprecated and will be removed in a future " | |
| "version. Use bdist_wheel (wheel packages) instead.", | |
| SetuptoolsDeprecationWarning, | |
| ) | |
| # ensure distro name is up-to-date | |
| self.run_command('egg_info') | |
| orig.bdist_rpm.run(self) | |
| def _make_spec_file(self): | |
| spec = orig.bdist_rpm._make_spec_file(self) | |
| spec = [ | |
| line.replace( | |
| "setup.py install ", | |
| "setup.py install --single-version-externally-managed " | |
| ).replace( | |
| "%setup", | |
| "%setup -n %{name}-%{unmangled_version}" | |
| ) | |
| for line in spec | |
| ] | |
| return spec | |