examples : add "command" tool (#171)

This commit is contained in:
Georgi Gerganov
2022-11-25 19:06:56 +02:00
parent b8ce25dec1
commit bc88eb13c6
9 changed files with 735 additions and 51 deletions

View File

@@ -134,7 +134,7 @@ libwhisper.so: ggml.o whisper.o
$(CXX) $(CXXFLAGS) -shared -o libwhisper.so ggml.o whisper.o $(LDFLAGS)
clean:
rm -f *.o main stream bench libwhisper.a libwhisper.so
rm -f *.o main stream command bench libwhisper.a libwhisper.so
#
# Examples
@@ -149,6 +149,9 @@ main: examples/main/main.cpp ggml.o whisper.o
stream: examples/stream/stream.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/stream/stream.cpp ggml.o whisper.o -o stream $(CC_SDL) $(LDFLAGS)
command: examples/command/command.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/command/command.cpp ggml.o whisper.o -o command $(CC_SDL) $(LDFLAGS)
bench: examples/bench/bench.cpp ggml.o whisper.o
$(CXX) $(CXXFLAGS) examples/bench/bench.cpp ggml.o whisper.o -o bench $(LDFLAGS)