alidenewade commited on
Commit
4ed4dfd
·
verified ·
1 Parent(s): f1085d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@
3
  # streamlit run app.py
4
  #
5
  # You also need to install the following libraries:
6
- # pip install streamlit torch transformers bitsandbytes rdkit py3Dmol pandas
7
 
8
  import streamlit as st
9
  import streamlit.components.v1 as components
@@ -12,7 +12,6 @@ from transformers import AutoModelForMaskedLM, AutoTokenizer, pipeline, BitsAndB
12
  from rdkit import Chem
13
  from rdkit.Chem import Draw, AllChem
14
  from rdkit.Chem.Draw import MolToImage
15
- import py3Dmol
16
  import pandas as pd
17
  import logging
18
 
@@ -250,4 +249,5 @@ with tab2:
250
  with col2:
251
  st.subheader("3D Interactive Structure")
252
  html_3d = generate_3d_view_html(smiles_input_viewer)
253
- components.html(html_3d, height=470)
 
 
3
  # streamlit run app.py
4
  #
5
  # You also need to install the following libraries:
6
+ # pip install streamlit torch transformers bitsandbytes rdkit-pypi py3Dmol pandas
7
 
8
  import streamlit as st
9
  import streamlit.components.v1 as components
 
12
  from rdkit import Chem
13
  from rdkit.Chem import Draw, AllChem
14
  from rdkit.Chem.Draw import MolToImage
 
15
  import pandas as pd
16
  import logging
17
 
 
249
  with col2:
250
  st.subheader("3D Interactive Structure")
251
  html_3d = generate_3d_view_html(smiles_input_viewer)
252
+ components.html(html_3d, height=470)
253
+