handle empty lines

This commit is contained in:
Wing Lian
2023-04-19 08:03:34 -04:00
parent 0a472e1e08
commit f50de1b1cb

View File

@@ -5,7 +5,7 @@ with open("./requirements.txt", "r") as requirements_file:
# don't include peft yet until we check the int4
# need to manually install peft for now...
reqs = [r.strip() for r in requirements_file.readlines() if "peft" not in r]
reqs = [r for r in reqs if r[0] != "#"]
reqs = [r for r in reqs if r and r[0] != "#"]
for r in reqs:
install_requires.append(r)