Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
whisper-asr-webservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schwertgen
whisper-asr-webservice
Commits
4298f3f5
Commit
4298f3f5
authored
3 months ago
by
Ahmet Öner
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade dependencies
parent
80e906d3
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
Dockerfile.gpu
+2
-2
2 additions, 2 deletions
Dockerfile.gpu
poetry.lock
+605
-187
605 additions, 187 deletions
poetry.lock
pyproject.toml
+38
-28
38 additions, 28 deletions
pyproject.toml
with
646 additions
and
218 deletions
Dockerfile
+
1
−
1
View file @
4298f3f5
...
...
@@ -14,7 +14,7 @@ ENV POETRY_VENV=/app/.venv
RUN
python3
-m
venv
$POETRY_VENV
\
&&
$POETRY_VENV
/bin/pip
install
-U
pip setuptools
\
&&
$POETRY_VENV
/bin/pip
install
poetry
==
1.6
.1
&&
$POETRY_VENV
/bin/pip
install
poetry
==
2.1
.1
ENV
PATH="${PATH}:${POETRY_VENV}/bin"
...
...
This diff is collapsed.
Click to expand it.
Dockerfile.gpu
+
2
−
2
View file @
4298f3f5
...
...
@@ -28,7 +28,7 @@ RUN ln -s -f /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 && \
RUN python3 -m venv $POETRY_VENV \
&& $POETRY_VENV/bin/pip install -U pip setuptools \
&& $POETRY_VENV/bin/pip install poetry==
1.6
.1
&& $POETRY_VENV/bin/pip install poetry==
2.1
.1
ENV PATH="${PATH}:${POETRY_VENV}/bin"
...
...
@@ -45,7 +45,7 @@ COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui.css swagger-ui-assets/sw
COPY --from=swagger-ui /usr/share/nginx/html/swagger-ui-bundle.js swagger-ui-assets/swagger-ui-bundle.js
RUN poetry install
RUN $POETRY_VENV/bin/pip install torch==
1.13.1+cu117 -f
https://download.pytorch.org/whl/
torch
RUN $POETRY_VENV/bin/pip install torch==
2.6.0 --index-url
https://download.pytorch.org/whl/
cu121
RUN $POETRY_VENV/bin/pip install pandas transformers nltk pyannote.audio
RUN git clone --depth 1 https://github.com/m-bain/whisperX.git \
...
...
This diff is collapsed.
Click to expand it.
poetry.lock
+
605
−
187
View file @
4298f3f5
This diff is collapsed.
Click to expand it.
pyproject.toml
+
38
−
28
View file @
4298f3f5
...
...
@@ -11,54 +11,64 @@ packages = [{ include = "app" }]
[tool.poetry.scripts]
whisper-asr-webservice
=
"app.webservice:start"
# Package Sources
[[tool.poetry.source]]
name
=
"pytorch"
url
=
"https://download.pytorch.org/whl/cpu"
priority
=
"explicit"
# Core Dependencies
[tool.poetry.dependencies]
python
=
"^3.10"
fastapi
=
"^0.115.8"
uvicorn
=
{
extras
=
[
"standard"
],
version
=
"^0.34.0"
}
tqdm
=
"^4.67.1"
python-multipart
=
"^0.0.20"
ffmpeg-python
=
"^0.2.0"
fastapi
=
"^0.115.6"
llvmlite
=
"^0.43.0"
numba
=
"^0.60.0"
# ML Dependencies
openai-whisper
=
"^20240930"
faster-whisper
=
"^1.1.1"
tqdm
=
"^4.67.1"
llvmlite
=
"^0.44.0"
numba
=
"^0.61.0"
# PyTorch Dependencies (Platform Specific)
torch
=
[
{
markers
=
"sys_platform
=
=
'darwin'
and
platform_machine
=
=
'arm64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
1.13
.
1
-cp
310
-none-macosx_
11_0
_arm
64
.whl
" },
{
markers
=
"sys_platform
=
=
'linux'
and
platform_machine
=
=
'arm64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
1.13
.
1
-cp
310
-none-macosx_
11_0
_arm
64
.whl
" },
{
markers
=
"sys_platform
=
=
'darwin'
and
platform_machine
=
=
'x86_64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
1.13
.
1
-cp
310
-none-macosx_
1
0_9
_x
86_
64
.whl
" },
{
markers
=
"sys_platform
=
=
'linux'
and
platform_machine
=
=
'aarch64'", url = "
https://download.pytorch.org/whl/torch
-
1.13
.
1
-cp
310
-cp
310
-manylinux
2014
_aarch
64
.whl
" },
{
markers
=
"sys_platform
=
=
'linux'
and
platform_machine
=
=
'x86_64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
1.13
.
1
%
2
Bcpu-cp
310
-cp
310
-linux_x
86_64
.whl
" },
{
markers
=
"sys_platform
=
=
'win'
and
platform_machine
=
=
'amd64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
1.13
.
1
%
2
Bcpu-cp
310
-cp
310
-win_amd
64
.whl
" },
{
markers
=
"sys_platform
=
=
'darwin'
and
platform_machine
=
=
'arm64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
2.6
.
0
-cp
310
-none-macosx_
11_0
_arm
64
.whl
" },
{
markers
=
"sys_platform
=
=
'linux'
and
platform_machine
=
=
'arm64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
2.6
.
0
-cp
310
-none-macosx_
11_0
_arm
64
.whl
" },
{
markers
=
"sys_platform
=
=
'darwin'
and
platform_machine
=
=
'x86_64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
2.6
.
0
-cp
310
-none-macosx_
1
1_0
_arm
64
.whl
" },
{
markers
=
"sys_platform
=
=
'linux'
and
platform_machine
=
=
'aarch64'", url = "
https://download.pytorch.org/whl/
cpu/
torch
-
2.6
.
0
%
2
Bcpu
-cp
310
-cp
310
-manylinux
_
2_28
_aarch
64
.whl
" },
{
markers
=
"sys_platform
=
=
'linux'
and
platform_machine
=
=
'x86_64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
2.6
.
0
%
2
Bcpu-cp
310
-cp
310
-linux_x
86_64
.whl
" },
{
markers
=
"sys_platform
=
=
'win'
and
platform_machine
=
=
'amd64'", url = "
https://download.pytorch.org/whl/cpu/torch
-
2.6
.
0
%
2
Bcpu-cp
310
-cp
310
-win_amd
64
.whl
" },
]
# Development Dependencies
[poetry.group.dev.dependencies]
pytest
=
"^8.3.4"
ruff
=
"^0.
8.3
"
black
=
"^2
4
.1
0
.0"
ruff
=
"^0.
9.6
"
black
=
"^2
5
.1.0"
mkdocs
=
"^1.6.1"
mkdocs-material
=
"^9.
5
.4
9
"
pymdown-extensions
=
"^10.1
2
"
mkdocs-material
=
"^9.
6
.4"
pymdown-extensions
=
"^10.1
4.3
"
# Build System Configuration
[build-system]
requires
=
["poetry-core>
=
1.0
.
0
"]
build-backend
=
"poetry.core.masonry.api"
# Code Formatting Configuration
[tool.black]
skip-string-normalization
=
true
line-length
=
120
# Linting Configuration
[tool.ruff]
# Same as Black.
line-length
=
120
[tool.ruff.lint]
select
=
[
"E"
,
# pycodestyle errors
(settings from FastAPI, thanks, @tiangolo!)
"E"
,
# pycodestyle errors
"W"
,
# pycodestyle warnings
"F"
,
# pyflakes
"I"
,
# isort
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment