[refactor] rename project to "PolyScribe" and update references accordingly

This commit is contained in:
2025-08-08 10:10:12 +02:00
parent 96046be3a4
commit 3495d69da9
5 changed files with 20 additions and 20 deletions

30
Cargo.lock generated
View File

@@ -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"

View File

@@ -1,5 +1,5 @@
[package]
name = "dialogue_merger"
name = "polyscribe"
version = "0.1.0"
edition = "2024"

View File

@@ -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

View File

@@ -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<String>,

View File

@@ -125,7 +125,7 @@ fn size_from_tree(s: &HFTreeItem) -> Option<u64> {
fn fill_meta_via_head(repo: &'static str, name: &str) -> (Option<u64>, Option<String>) {
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")?;