v1.0.2 - style prompting, drop grammar correction

This commit is contained in:
2026-01-25 13:42:06 +02:00
parent d73656a75c
commit 4f077df03d
12 changed files with 246 additions and 37 deletions

14
main.py
View File

@@ -101,20 +101,14 @@ class DownloadWorker(QThread):
import requests
from tqdm import tqdm
model_path = get_models_path()
# Determine what to download
dest_dir = model_path / f"faster-whisper-{self.model_name}"
dest_dir.mkdir(parents=True, exist_ok=True)
# Files to download for a standard faster-whisper model
# We map local filenames to HF repo filenames
repo_id = f"Systran/faster-whisper-{self.model_name}"
files = ["config.json", "model.bin", "tokenizer.json", "vocabulary.json"]
# Check if Preprocessor config exists (sometimes it does, usually optional for whisper?)
# We'll stick to the core 4.
base_url = f"https://huggingface.co/{repo_id}/resolve/main"
logging.info(f"Downloading {self.model_name} from {base_url}...")
dest_dir.mkdir(parents=True, exist_ok=True)
logging.info(f"Downloading {self.model_name} to {dest_dir}...")
# 1. Calculate Total Size
total_size = 0