(file)
| 103 | return output.replace(prompt, "").replace("</s>", "").strip() |
| 104 | |
| 105 | def read_file_lines(file): |
| 106 | with open(file, 'r', errors='ignore', encoding='utf8') as f: |
| 107 | lines = f.readlines() |
| 108 | return lines |
| 109 | |
| 110 | def writelines_to_file(file, lines): |
| 111 | with open(file, 'w', encoding='utf8') as f: |
nothing calls this directly
no outgoing calls
no test coverage detected