common : separate whisper sources (#2846)

* common : separate whisper sources

* examples : add chrono

* examples : add more headers
This commit is contained in:
Georgi Gerganov
2025-02-27 12:50:32 +02:00
committed by GitHub
parent 9f83f67221
commit c64f3e8ada
13 changed files with 228 additions and 276 deletions

View File

@ -3,18 +3,19 @@
#include "common-sdl.h"
#include "common.h"
#include "common-whisper.h"
#include "whisper.h"
#include "llama.h"
#include <cassert>
#include <chrono>
#include <cstdio>
#include <fstream>
#include <regex>
#include <regex>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
#include <regex>
#include <sstream>
static std::vector<llama_token> llama_tokenize(struct llama_context * ctx, const std::string & text, bool add_bos) {
const llama_model * model = llama_get_model(ctx);