File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11"""CLI commands for processing podcast audio files (transcription, analysis)."""
22
3+ import json
34from pathlib import Path
45from typing import Optional
56
67import rich_click as click
8+ from pydantic import ValidationError
79from rich .console import Console
810from rich .progress import (
911 BarColumn ,
1820from retrocast .appdir import get_app_dir , get_default_db_path
1921from retrocast .datastore import Datastore
2022from retrocast .transcription import TranscriptionManager
23+ from retrocast .transcription .models import TranscriptionJSONModel
2124
2225console = Console ()
2326
@@ -463,12 +466,6 @@ def _validate_single_file(
463466 Tuple of (is_valid, error_type, error_message)
464467 error_type can be 'validation' or 'parse' or None
465468 """
466- import json
467-
468- from pydantic import ValidationError
469-
470- from retrocast .transcription .models import TranscriptionJSONModel
471-
472469 relative_path = json_file .relative_to (output_dir )
473470
474471 try :
You can’t perform that action at this time.
0 commit comments