File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ def _load_requirements(
32
32
reqs = []
33
33
for ln in lines :
34
34
# filer all comments
35
+ comment = ""
35
36
if comment_char in ln :
37
+ comment = ln [ln .index (comment_char ) :]
36
38
ln = ln [: ln .index (comment_char )]
37
- comment = ln [ln .index (comment_char ) :] if comment_char in ln else ""
38
39
req = ln .strip ()
39
40
# skip directly installed dependencies
40
41
if not req or req .startswith ("http" ) or "@http" in req :
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ torchmetrics>=0.4.1, <=0.7.2
8
8
pyDeprecate>=0.3.1, <=0.3.2
9
9
packaging>=17.0, <=21.3
10
10
typing-extensions>=4.0.0, <4.2.1
11
+ protobuf<=3.20.1 # strict. TODO: Remove after tensorboard gets compatible https://github.com/tensorflow/tensorboard/issues/5708
You can’t perform that action at this time.
0 commit comments