Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -198,8 +198,7 @@ def merge_lines(doc1, doc2, doc3, doc4):
|
|
198 |
docs = [doc1, doc2, doc3, doc4]
|
199 |
merged_lines = []
|
200 |
|
201 |
-
with open("merged_lines.txt", "w") as f,
|
202 |
-
*map(open, docs) as handles:
|
203 |
for lines in zip(*handles):
|
204 |
merged_line = "".join(line.strip() for line in lines)
|
205 |
f.write(merged_line + "\n")
|
|
|
198 |
docs = [doc1, doc2, doc3, doc4]
|
199 |
merged_lines = []
|
200 |
|
201 |
+
with open("merged_lines.txt", "w") as f, *map(open, docs) as handles:
|
|
|
202 |
for lines in zip(*handles):
|
203 |
merged_line = "".join(line.strip() for line in lines)
|
204 |
f.write(merged_line + "\n")
|