Spaces:
Sleeping
Sleeping
Trương Gia Bảo
commited on
Commit
·
790267c
1
Parent(s):
f74759b
Add more examples
Browse files
README.md
CHANGED
@@ -13,6 +13,9 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
|
|
13 |
|
14 |
# Changelog
|
15 |
|
|
|
|
|
|
|
16 |
## 1.02
|
17 |
* Update model.
|
18 |
|
|
|
13 |
|
14 |
# Changelog
|
15 |
|
16 |
+
## 1.03
|
17 |
+
* Add more examples.
|
18 |
+
|
19 |
## 1.02
|
20 |
* Update model.
|
21 |
|
app.py
CHANGED
@@ -33,8 +33,8 @@ from molbloom import buy
|
|
33 |
|
34 |
|
35 |
what_new = '''
|
36 |
-
### Version 1.
|
37 |
-
*
|
38 |
'''
|
39 |
|
40 |
|
@@ -465,13 +465,19 @@ def Optimize_a_molecule():
|
|
465 |
if 'compared' not in st.session_state:
|
466 |
st.session_state.compared = False
|
467 |
# with oab_sel_container.container():
|
468 |
-
ls_opt = ['-','Sorafenib','Pazopanib','Sunitinib']
|
469 |
sample_mode = {
|
470 |
'-':'',
|
471 |
-
'Sorafenib':'CNC(=O)C1=NC=CC(=C1)OC2=CC=C(C=C2)NC(=O)NC3=CC(=C(C=C3)Cl)C(F)(F)F',
|
472 |
-
'Pazopanib':'CC1=C(C=C(C=C1)NC2=NC=CC(=N2)N(C)C3=CC4=NN(C(=C4C=C3)C)C)S(=O)(=O)N',
|
473 |
-
'Sunitinib':'CCN(CC)CCNC(=O)C1=C(NC(=C1C)C=C2C3=C(C=CC(=C3)F)NC2=O)C'
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
}
|
|
|
475 |
oam_sel_col = st.columns([3,7])
|
476 |
with st.form('sel_smiles'):
|
477 |
mode = oam_sel_col[0].selectbox("Select an example",options=ls_opt,on_change=reset_oam_state)
|
|
|
33 |
|
34 |
|
35 |
what_new = '''
|
36 |
+
### Version 1.03
|
37 |
+
* Add more examples.
|
38 |
'''
|
39 |
|
40 |
|
|
|
465 |
if 'compared' not in st.session_state:
|
466 |
st.session_state.compared = False
|
467 |
# with oab_sel_container.container():
|
|
|
468 |
sample_mode = {
|
469 |
'-':'',
|
470 |
+
'Sorafenib':Chem.CanonSmiles('CNC(=O)C1=NC=CC(=C1)OC2=CC=C(C=C2)NC(=O)NC3=CC(=C(C=C3)Cl)C(F)(F)F'),
|
471 |
+
'Pazopanib':Chem.CanonSmiles('CC1=C(C=C(C=C1)NC2=NC=CC(=N2)N(C)C3=CC4=NN(C(=C4C=C3)C)C)S(=O)(=O)N'),
|
472 |
+
'Sunitinib':Chem.CanonSmiles('CCN(CC)CCNC(=O)C1=C(NC(=C1C)C=C2C3=C(C=CC(=C3)F)NC2=O)C'),
|
473 |
+
'Cabozantinib':Chem.CanonSmiles('COC1=CC2=C(C=CN=C2C=C1OC)OC3=CC=C(C=C3)NC(=O)C4(CC4)C(=O)NC5=CC=C(C=C5)F'),
|
474 |
+
'Axitinib':Chem.CanonSmiles('CNC(=O)C1=CC=CC=C1SC2=CC3=C(C=C2)C(=NN3)C=CC4=CC=CC=N4'),
|
475 |
+
'Lenvatinib':Chem.CanonSmiles('COC1=CC2=NC=CC(=C2C=C1C(=O)N)OC3=CC(=C(C=C3)NC(=O)NC4CC4)Cl'),
|
476 |
+
'Regorafenib':Chem.CanonSmiles('CNC(=O)C1=NC=CC(=C1)OC2=CC(=C(C=C2)NC(=O)NC3=CC(=C(C=C3)Cl)C(F)(F)F)F'),
|
477 |
+
'Vandetanib':Chem.CanonSmiles('CN1CCC(CC1)COC2=C(C=C3C(=C2)N=CN=C3NC4=C(C=C(C=C4)Br)F)OC'),
|
478 |
+
'Tivozanib': Chem.CanonSmiles('CC1=CC(=NO1)NC(=O)NC2=C(C=C(C=C2)OC3=C4C=C(C(=CC4=NC=C3)OC)OC)Cl')
|
479 |
}
|
480 |
+
ls_opt = list(sample_mode.keys())
|
481 |
oam_sel_col = st.columns([3,7])
|
482 |
with st.form('sel_smiles'):
|
483 |
mode = oam_sel_col[0].selectbox("Select an example",options=ls_opt,on_change=reset_oam_state)
|