Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -171,14 +171,20 @@ if __name__ == "__main__":
|
|
171 |
keys = get_files.get_keys()
|
172 |
|
173 |
# Get stored meeting path
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
meetings
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|