Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ if st.session_state.structure_info:
|
|
158 |
mime='text/plain',
|
159 |
)
|
160 |
|
161 |
-
|
162 |
pdbview = py3Dmol.view(width=800, height=500)
|
163 |
pdbview.addModel(pdb, 'pdb')
|
164 |
pdbview.setStyle({'cartoon': {'color': 'spectrum'}})
|
|
|
158 |
mime='text/plain',
|
159 |
)
|
160 |
|
161 |
+
def render_mol(pdb):
|
162 |
pdbview = py3Dmol.view(width=800, height=500)
|
163 |
pdbview.addModel(pdb, 'pdb')
|
164 |
pdbview.setStyle({'cartoon': {'color': 'spectrum'}})
|