tykiww commited on
Commit
5f8fb88
1 Parent(s): a7d4d8d

Update utilities/transcripts.py

Browse files
Files changed (1) hide show
  1. utilities/transcripts.py +1 -15
utilities/transcripts.py CHANGED
@@ -114,21 +114,7 @@ class VTTTranscriptLoader:
114
 
115
  return self.manual_document(output, metadata)
116
 
117
- def directory_load(self):
118
- """Processes all VTT files in the directory or the single file and returns a list of results."""
119
- results = []
120
- if os.path.isdir(self.fp):
121
- for root, _, files in os.walk(self.fp):
122
- for file in files:
123
- if file.endswith('.vtt'):
124
- file_path = os.path.join(root, file)
125
- transcript = self.process_file(file_path)
126
- results.append(transcript)
127
- else:
128
- transcript = self.process_file(self.fp)
129
- results.append(transcript)
130
- return results
131
-
132
  def load(self):
133
  """Processes all VTT files in the given list of directories or files and returns a list of results."""
134
  results = []
 
114
 
115
  return self.manual_document(output, metadata)
116
 
117
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  def load(self):
119
  """Processes all VTT files in the given list of directories or files and returns a list of results."""
120
  results = []