diff --git a/Cargo.lock b/Cargo.lock index affa5db..55e92d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -316,21 +316,6 @@ dependencies = [ "typenum", ] -[[package]] -name = "dialogue_merger" -version = "0.1.0" -dependencies = [ - "anyhow", - "chrono", - "clap", - "reqwest", - "serde", - "serde_json", - "sha2", - "toml", - "whisper-rs", -] - [[package]] name = "digest" version = "0.10.7" @@ -1065,6 +1050,21 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +[[package]] +name = "polyscribe" +version = "0.1.0" +dependencies = [ + "anyhow", + "chrono", + "clap", + "reqwest", + "serde", + "serde_json", + "sha2", + "toml", + "whisper-rs", +] + [[package]] name = "potential_utf" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 4970a68..cd840d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "dialogue_merger" +name = "polyscribe" version = "0.1.0" edition = "2024" diff --git a/TODO.md b/TODO.md index f484478..201c46d 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,6 @@ - [x] update the project to no more use features - [x] update last_model to be only used during one run -- rename project to "PolyScribe" +- [x] rename project to "PolyScribe" - add tests - update local models using hashes (--update-models) - create folder models/ if not present -> use /usr/share/polyscribe/models/ for release version, use ./models/ for development version diff --git a/src/main.rs b/src/main.rs index b3f14d4..f0a3caa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ mod models; static LAST_MODEL_WRITTEN: AtomicBool = AtomicBool::new(false); #[derive(Parser, Debug)] -#[command(name = "merge_transcripts", version, about = "Merge multiple JSON transcripts into one or transcribe audio using native whisper")] +#[command(name = "PolyScribe", version, about = "Merge multiple JSON transcripts into one or transcribe audio using native whisper")] struct Args { /// Input .json transcript files or audio files to merge/transcribe inputs: Vec, diff --git a/src/models.rs b/src/models.rs index d22db8d..7efa47c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -125,7 +125,7 @@ fn size_from_tree(s: &HFTreeItem) -> Option { fn fill_meta_via_head(repo: &'static str, name: &str) -> (Option, Option) { let head_client = match Client::builder() - .user_agent("dialogue_merger/0.1 (+https://github.com/)") + .user_agent("PolyScribe/0.1 (+https://github.com/)") .redirect(Policy::none()) .timeout(Duration::from_secs(30)) .build() { @@ -343,7 +343,7 @@ pub fn run_interactive_model_downloader() -> Result<()> { let models_dir = Path::new("models"); if !models_dir.exists() { create_dir_all(models_dir).context("Failed to create models directory")?; } let client = Client::builder() - .user_agent("dialogue_merger/0.1 (+https://github.com/)") + .user_agent("PolyScribe/0.1 (+https://github.com/)") .timeout(std::time::Duration::from_secs(600)) .build() .context("Failed to build HTTP client")?;