Release v1.0.2: Implemented Style Prompting & Removed Grammar Correction

- Removed M2M100 Grammar Correction model completely to reduce bloat/complexity.
- Implemented 'Style Prompting' in Settings -> AI Engine to handle punctuation natively via Whisper.
- Added Style Presets: Standard (Default), Casual, and Custom.
- Optimized Build: Bootstrapper no longer requires transformers/sentencepiece.
- Fixed 'torch' NameError in Low VRAM mode.
- Fixed Bootstrapper missing dependency detection.
- Updated UI to reflect removed features.
- Included compiled v1.0.2 Executable in dist/.
This commit is contained in:
Your Name
2026-01-25 13:42:06 +02:00
parent 03f46ee1e3
commit 84f10092e9
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