tykiww commited on
Commit
b37ee8c
1 Parent(s): 4ea4b44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -171,14 +171,20 @@ if __name__ == "__main__":
171
  keys = get_files.get_keys()
172
 
173
  # Get stored meeting path
174
- store = conf["layout"]["stored_meetings"]
175
- meeting_paths = os.listdir(store)
176
- combined_paths = [store + i for i in meeting_paths]
177
- loader = VTTTranscriptLoader(combined_paths)
178
- results = loader.load()
179
- meetings = []
180
- for d in range(len(results)):
181
- meetings.append(clean_text(results[d].text))
 
 
 
 
 
 
182
  print(meeting_paths)
183
  print(meetings[0])
184
 
 
171
  keys = get_files.get_keys()
172
 
173
  # Get stored meeting path
174
+
175
+ def return_stored_transcripts(conf):
176
+ store = conf["layout"]["stored_meetings"]
177
+ meeting_paths = os.listdir(store)
178
+ combined_paths = [store + i for i in meeting_paths]
179
+ loader = VTTTranscriptLoader(combined_paths)
180
+ results = loader.load()
181
+ meetings = []
182
+ for d in range(len(results)):
183
+ meetings.append(clean_text(results[d].text))
184
+ return meetings, meeting_paths
185
+
186
+ meetings, meeting_paths = return_stored_transcripts(conf)
187
+
188
  print(meeting_paths)
189
  print(meetings[0])
190