handle empty lines
Browse files
setup.py
CHANGED
@@ -5,7 +5,7 @@ with open("./requirements.txt", "r") as requirements_file:
|
|
5 |
# don't include peft yet until we check the int4
|
6 |
# need to manually install peft for now...
|
7 |
reqs = [r.strip() for r in requirements_file.readlines() if "peft" not in r]
|
8 |
-
reqs = [r for r in reqs if r[0] != "#"]
|
9 |
for r in reqs:
|
10 |
install_requires.append(r)
|
11 |
|
|
|
5 |
# don't include peft yet until we check the int4
|
6 |
# need to manually install peft for now...
|
7 |
reqs = [r.strip() for r in requirements_file.readlines() if "peft" not in r]
|
8 |
+
reqs = [r for r in reqs if r and r[0] != "#"]
|
9 |
for r in reqs:
|
10 |
install_requires.append(r)
|
11 |
|