Spaces:
Sleeping
Sleeping
Reduce attention cylinder size
Browse files- hexviz/app.py +1 -1
hexviz/app.py
CHANGED
@@ -49,7 +49,7 @@ def get_3dview(pdb):
|
|
49 |
xyzview.setStyle({"cartoon": {"color": "spectrum"}})
|
50 |
stmol.add_hover(xyzview, backgroundColor="black", fontColor="white")
|
51 |
for att_weight, first, second in attention_pairs:
|
52 |
-
stmol.add_cylinder(xyzview, start=first, end=second, cylradius=att_weight
|
53 |
return xyzview
|
54 |
|
55 |
|
|
|
49 |
xyzview.setStyle({"cartoon": {"color": "spectrum"}})
|
50 |
stmol.add_hover(xyzview, backgroundColor="black", fontColor="white")
|
51 |
for att_weight, first, second in attention_pairs:
|
52 |
+
stmol.add_cylinder(xyzview, start=first, end=second, cylradius=att_weight, cylColor='red', dashed=False)
|
53 |
return xyzview
|
54 |
|
55 |
|