Skip to content

Commit

Permalink
Merge pull request #10 from eschmidbauer/main
Browse files Browse the repository at this point in the history
fix build
  • Loading branch information
litongjava committed May 9, 2024
2 parents c328c96 + 2d160e0 commit 509f5ac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions handler/inference_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void getReqParameters(const Request &req, whisper_params &params) {
params.diarize = true;
}
if (req.has_file("translate")) {
params.translate = true
params.translate = true;
}
}

Expand Down Expand Up @@ -442,8 +442,6 @@ void handle_events(const Request &request, Response &response, std::mutex &whisp
printf("%s: Received filename: %s \n", get_current_time().c_str(), filename.c_str());
// check non-required fields
getReqParameters(request, params);
params.stream = true
params.stream = true;
printf("%s: audio_format:%s \n", get_current_time().c_str(), params.audio_format.c_str());
std::unique_lock<std::mutex> lock(queue_mutex);

}
}

0 comments on commit 509f5ac

Please sign in to comment.