mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +00:00
Merge pull request #3 from ariavn-byte/copilot/review-repo-011cv3pvca7zsctw2yquumb8
Fix critical flake8 violations: unused imports, f-string placeholders, and slice spacing
This commit is contained in:
commit
d93554a9ec
@ -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