Comments (2)
For me it worked on a jetson orin using the following Dockerfile:
FROM swaggerapi/swagger-ui:v4.18.2 AS swagger-ui
FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -qq update \
&& apt-get -qq install --no-install-recommends \
python3-pip \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install -U pip setuptools
WORKDIR /app
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
COPY . .
COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui.css swagger-ui-assets/swagger-ui.css
COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-assets/swagger-ui-bundle.js
CMD gunicorn --bind 0.0.0.0:9000 --workers 1 --timeout 0 app.webservice:app -k uvicorn.workers.UvicornWorker
It is based on nvidia's pytorch container so it can easily make use of the GPU. However this container is based on python 3.8 so additional adjustments are necessary. Since I haven't checked out poetry yet I replaced it with following requirements.txt
:
unidecode >= 1.3.4, == 1.*
uvicorn [standard] >= 0.18.2, == 0.*
gunicorn >= 20.1.0, == 20.*
tqdm >= 4.64.1, == 4.*
transformers >= 4.22.1, == 4.*
python-multipart >= 0.0.5, == 0.*
ffmpeg-python >= 0.2.0, == 0.*
fastapi >= 0.95.1, == 0.*
llvmlite >= 0.39.1, == 0.*
numba >= 0.56.4, == 0.*
openai-whisper == 20230124
faster-whisper >= 0.4.1, == 0.*
Finally I removed the importlib
dependency from webservice.py
to fix some error.
I guess there are better ways to solve this problem and keep this repositories structure, so I am providing this just as a reference of one way to possibly achieve your goal.
from whisper-asr-webservice.
faster-whisper
Thanks for your script here.
How to set the model type =Largev3?
from whisper-asr-webservice.
Related Issues (20)
- Recommended Hardware requirements HOT 2
- Failed To Fetch HOT 3
- Error loading heavy models HOT 3
- Use all Cores full? HOT 2
- argument --allow_origins: invalid List value: 'https://example.com' HOT 1
- ERROR: No matching distribution found for torch==2.0.1a0 HOT 2
- v1.2.4 Docker hub image might be broken HOT 6
- CUDA failed with error out of memory HOT 1
- Did not find boundary character 91 at index 2 HOT 5
- Support for Whisper JAX HOT 6
- UnicodeEncodeError: 'latin-1' codec can't encode characters in position 28-33: ordinal not in range(256) HOT 2
- The value of the vad_filter was not determined. HOT 4
- FR: compatibility with OpenAI's API HOT 3
- could it surpport distil-whisper?
- Unable to resolve error `Invalid data found when processing input` when trying to transcribe MP3/M4A/etc. HOT 1
- UnicodeEncodeError: 'latin-1' codec can't encode character '\u0119' in position 61: ordinal not in range(256) HOT 2
- The input parameter 'vad_filter' is not being used in 'faster_whisper' HOT 2
- Support for whisper.cpp stream capabilities for realtime transcription.
- Files with MOV extension always return empty result HOT 1
- Downloading the file, it gets html extension HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whisper-asr-webservice.