Spaces:
Runtime error
Runtime error
linebreak
Browse files
src/runners/transcription_zipper.py
CHANGED
@@ -23,7 +23,6 @@ class TranscriptionZipper(bentoml.Runnable):
|
|
23 |
else:
|
24 |
orig_filename = orig_filename.removesuffix(".wav")
|
25 |
|
26 |
-
print(orig_filename)
|
27 |
new_content = create_word_content(orig_filename, t_list[1], t_list[2])
|
28 |
new_content.save(orig_filename + '.docx')
|
29 |
# new_content = create_content(t_list[1], t_list[2]) # html string
|
@@ -44,12 +43,12 @@ def create_word_content(filename, old_content, new_content):
|
|
44 |
document.add_heading(filename, 1)
|
45 |
|
46 |
p = document.add_paragraph()
|
47 |
-
p.
|
|
|
48 |
|
49 |
old_content = old_content.split(" ")
|
50 |
changed_content = new_content.split(" ")
|
51 |
both = [word for word in changed_content if word in old_content]
|
52 |
-
new_content = ""
|
53 |
i = 0
|
54 |
|
55 |
while i < len(changed_content):
|
|
|
23 |
else:
|
24 |
orig_filename = orig_filename.removesuffix(".wav")
|
25 |
|
|
|
26 |
new_content = create_word_content(orig_filename, t_list[1], t_list[2])
|
27 |
new_content.save(orig_filename + '.docx')
|
28 |
# new_content = create_content(t_list[1], t_list[2]) # html string
|
|
|
43 |
document.add_heading(filename, 1)
|
44 |
|
45 |
p = document.add_paragraph()
|
46 |
+
run = p.add_run()
|
47 |
+
run.add_break()
|
48 |
|
49 |
old_content = old_content.split(" ")
|
50 |
changed_content = new_content.split(" ")
|
51 |
both = [word for word in changed_content if word in old_content]
|
|
|
52 |
i = 0
|
53 |
|
54 |
while i < len(changed_content):
|