jhj0517 commited on
Commit
b9aca0f
·
1 Parent(s): aa24086

Fix deprecated syntax

Browse files
Files changed (1) hide show
  1. modules/utils/subtitle_manager.py +1 -1
modules/utils/subtitle_manager.py CHANGED
@@ -70,7 +70,7 @@ class ResultWriter:
70
  options: Optional[dict] = None, **kwargs
71
  ):
72
  if isinstance(result, List) and result and isinstance(result[0], Segment):
73
- result = {"segments": [seg.dict() for seg in result]}
74
 
75
  output_path = os.path.join(
76
  self.output_dir, output_file_name + "." + self.extension
 
70
  options: Optional[dict] = None, **kwargs
71
  ):
72
  if isinstance(result, List) and result and isinstance(result[0], Segment):
73
+ result = {"segments": [seg.model_dump() for seg in result]}
74
 
75
  output_path = os.path.join(
76
  self.output_dir, output_file_name + "." + self.extension