From efcb1f565f74bd3a075f0ccf0513ff54c3a98d4c Mon Sep 17 00:00:00 2001 From: Chidi Williams Date: Mon, 2 Jan 2023 10:11:25 +0000 Subject: [PATCH] Add Mac test --- .github/workflows/build.yml | 5 +++++ examples/main/main.cpp | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9dc92ea..60a5e3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,11 @@ jobs: make make stream + - name: Test + run: | + bash whisper.cpp/models/download-ggml-model.sh tiny + ./main samples/jfk.wav -m models/ggml-tiny.bin + macOS-latest: runs-on: macOS-latest diff --git a/examples/main/main.cpp b/examples/main/main.cpp index ecb4bdd..ce8b484 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -259,7 +259,6 @@ void whisper_print_segment_callback(struct whisper_context * ctx, int n_new, voi printf("[%s --> %s] %s%s\n", to_timestamp(t0).c_str(), to_timestamp(t1).c_str(), speaker.c_str(), text); } - fflush(stdout); } } }