mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 06:26:03 +00:00
Fix critical code quality issues: remove unused imports, fix f-strings and whitespace
Co-authored-by: ariavn-byte <151469489+ariavn-byte@users.noreply.github.com>
This commit is contained in:
parent
6217f530f5
commit
6c5c3b3d56
@ -4,7 +4,6 @@ Configuration settings for Farsi Transcriber application
|
||||
Manages model selection, device settings, and other configuration options.
|
||||
"""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Application metadata
|
||||
|
||||
@ -4,7 +4,6 @@ Whisper Transcriber Module
|
||||
Handles Farsi audio/video transcription using OpenAI's Whisper model.
|
||||
"""
|
||||
|
||||
import os
|
||||
import warnings
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional
|
||||
@ -53,7 +52,7 @@ class FarsiTranscriber:
|
||||
warnings.simplefilter("ignore")
|
||||
self.model = whisper.load_model(model_name, device=self.device)
|
||||
|
||||
print(f"Model loaded successfully")
|
||||
print("Model loaded successfully")
|
||||
|
||||
def transcribe(
|
||||
self,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user