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

@ -11,16 +11,15 @@
#include "whisper.h"
#include "grammar-parser.h"
#include <sstream>
#include <cassert>
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <fstream>
#include <mutex>
#include <regex>
#include <map>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
#include <map>
// command-line parameters
struct whisper_params {