Spaces:
Sleeping
Sleeping
fix line break error
Browse files
app.py
CHANGED
@@ -90,8 +90,10 @@ def print_segment(speaker, company, timestamp, text):
|
|
90 |
def create_searchable_segments(parsed_segments):
|
91 |
searchable_segments = []
|
92 |
for segment in parsed_segments:
|
93 |
-
searchable_text =
|
94 |
-
{segment['
|
|
|
|
|
95 |
searchable_segments.append(searchable_text)
|
96 |
return searchable_segments
|
97 |
|
|
|
90 |
def create_searchable_segments(parsed_segments):
|
91 |
searchable_segments = []
|
92 |
for segment in parsed_segments:
|
93 |
+
searchable_text = (
|
94 |
+
f"{segment['speaker']},{segment['company']},"
|
95 |
+
f"{segment['timestamp']}:: {segment['text']}"
|
96 |
+
)
|
97 |
searchable_segments.append(searchable_text)
|
98 |
return searchable_segments
|
99 |
|