Spaces:
Sleeping
Sleeping
fix inference_app.py
Browse files- inference_app.py +3 -2
inference_app.py
CHANGED
|
@@ -413,8 +413,9 @@ def merge_pdb_files(file1, file2, output_file):
|
|
| 413 |
with open(output_file, 'w') as outfile:
|
| 414 |
# Copy the contents of the first file
|
| 415 |
with open(file1, 'r') as f1:
|
| 416 |
-
|
| 417 |
-
|
|
|
|
| 418 |
# Copy the contents of the second file
|
| 419 |
with open(file2, 'r') as f2:
|
| 420 |
outfile.write(f2.read())
|
|
|
|
| 413 |
with open(output_file, 'w') as outfile:
|
| 414 |
# Copy the contents of the first file
|
| 415 |
with open(file1, 'r') as f1:
|
| 416 |
+
lines = f1.readlines()
|
| 417 |
+
# Write all lines except the last 'END' line
|
| 418 |
+
outfile.writelines(lines[:-1])
|
| 419 |
# Copy the contents of the second file
|
| 420 |
with open(file2, 'r') as f2:
|
| 421 |
outfile.write(f2.read())
|