jinysun commited on
Commit
8dbcfe1
·
1 Parent(s): d9528d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -53,6 +53,10 @@ if option ==":black[**Donor**]":
53
  st.subheader(":black[**🧡Input the SMILES of Acceptor Molecule**]")
54
  acceptor = st.text_input(":black[**🧡Input the SMILES of Acceptor Molecule**]", label_visibility="hidden")
55
  try:
 
 
 
 
56
  pce = run.smiles_aas_test( str(acceptor ), str(donor) )
57
  st.subheader(f"⚡**PCE**: ``{pce}``")
58
  except:
 
53
  st.subheader(":black[**🧡Input the SMILES of Acceptor Molecule**]")
54
  acceptor = st.text_input(":black[**🧡Input the SMILES of Acceptor Molecule**]", label_visibility="hidden")
55
  try:
56
+ mola = Chem.MolFromSmiles(acceptor)
57
+ acceptor = Chem.MolToSmiles(mola)
58
+ mold = Chem.MolFromSmiles(donor)
59
+ donor = Chem.MolToSmiles(mold)
60
  pce = run.smiles_aas_test( str(acceptor ), str(donor) )
61
  st.subheader(f"⚡**PCE**: ``{pce}``")
62
  except: