Skip to content

Commit eacdcfb

Browse files
authored
Merge pull request #59 from mutablelogic/v1
Reorg of pkg folder
2 parents 12a6859 + 886d60a commit eacdcfb

29 files changed

+54
-45
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ test: generate libwhisper libggml
5858
@echo "Running tests (sys)"
5959
@PKG_CONFIG_PATH=${ROOT_PATH}/${BUILD_DIR} ${GO} test -v ./sys/whisper/...
6060
@echo "Running tests (pkg)"
61-
@PKG_CONFIG_PATH=${ROOT_PATH}/${BUILD_DIR} ${GO} test -v ./pkg/whisper/...
61+
@PKG_CONFIG_PATH=${ROOT_PATH}/${BUILD_DIR} ${GO} test -v ./pkg/...
62+
@echo "Running tests (whisper)"
63+
@PKG_CONFIG_PATH=${ROOT_PATH}/${BUILD_DIR} ${GO} test -v ./
6264

6365
# Build whisper-static-library
6466
libwhisper: submodule

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ See all the other targets in the `Makefile` for more information.
9696

9797
## Developing
9898

99-
The `cmd/examples` directory contains a simple example of how to use the `whisper` package
100-
in your own code.
99+
TODO
101100

102101
## Status
103102

cmd/whisper/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
// Packages
77
"github.com/mutablelogic/go-server/pkg/httpserver"
8-
"github.com/mutablelogic/go-whisper/pkg/whisper/api"
8+
"github.com/mutablelogic/go-whisper/pkg/api"
99
)
1010

1111
type ServerCmd struct {

cmd/whisper/transcribe.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
// Packages
88
whisper "github.com/mutablelogic/go-whisper"
9-
schema "github.com/mutablelogic/go-whisper/pkg/whisper/schema"
10-
segmenter "github.com/mutablelogic/go-whisper/pkg/whisper/segmenter"
11-
task "github.com/mutablelogic/go-whisper/pkg/whisper/task"
9+
schema "github.com/mutablelogic/go-whisper/pkg/schema"
10+
segmenter "github.com/mutablelogic/go-whisper/pkg/segmenter"
11+
task "github.com/mutablelogic/go-whisper/pkg/task"
1212

1313
// Namespace imports
1414
. "github.com/djthorpe/go-errors"

doc/notes.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

etc/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG ARCH
1414
ARG OS
1515

1616
RUN apt-get -y update \
17-
&& apt-get -y install software-properties-common curl \
17+
&& apt-get -y install software-properties-common curl libgomp1 \
1818
&& add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6 \
1919
&& apt-get -y update \
2020
&& apt-get -y install libavformat-dev libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
@@ -35,7 +35,10 @@ RUN make -j$(nproc)
3535
# Setup runtime container
3636
FROM ${BASE_RUN_CONTAINER} AS runtime
3737
RUN apt-get -y update \
38-
&& apt-get -y install libavformat58 libavcodec58 libavdevice58 libavfilter7 libavutil56 libswscale5 libswresample3
38+
&& apt-get -y install software-properties-common libgomp1 \
39+
&& add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6 \
40+
&& apt-get -y update \
41+
&& apt-get -y install libavformat60 libavcodec60 libavdevice60 libavfilter9 libavutil58 libswscale7 libswresample4
3942
COPY --from=build --chmod=755 /app/build/whisper /usr/local/bin/whisper
4043
COPY --from=build /app/build/whisper /usr/local/bin/whisper
4144
COPY --chmod=755 etc/entrypoint.sh .
File renamed without changes.

pkg/whisper/api/models.go renamed to pkg/api/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/mutablelogic/go-server/pkg/httprequest"
1313
"github.com/mutablelogic/go-server/pkg/httpresponse"
1414
"github.com/mutablelogic/go-whisper"
15-
"github.com/mutablelogic/go-whisper/pkg/whisper/schema"
15+
"github.com/mutablelogic/go-whisper/pkg/schema"
1616
)
1717

1818
///////////////////////////////////////////////////////////////////////////////
File renamed without changes.

pkg/whisper/api/transcribe.go renamed to pkg/api/transcribe.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
"github.com/mutablelogic/go-server/pkg/httprequest"
1414
"github.com/mutablelogic/go-server/pkg/httpresponse"
1515
"github.com/mutablelogic/go-whisper"
16-
"github.com/mutablelogic/go-whisper/pkg/whisper/schema"
17-
"github.com/mutablelogic/go-whisper/pkg/whisper/segmenter"
18-
"github.com/mutablelogic/go-whisper/pkg/whisper/task"
16+
"github.com/mutablelogic/go-whisper/pkg/schema"
17+
"github.com/mutablelogic/go-whisper/pkg/segmenter"
18+
"github.com/mutablelogic/go-whisper/pkg/task"
1919

2020
// Namespace imports
2121
. "github.com/djthorpe/go-errors"

0 commit comments

Comments
 (0)