sagawa commited on
Commit
faf2fff
·
1 Parent(s): 70345ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -14,7 +14,11 @@ from rdkit import Chem
14
  import rdkit
15
  import streamlit as st
16
 
17
- display_text = r'At this space, you can predict the products of reactions from their inputs. \nThe format of the string is like "REACTANT:{reactants of the reaction}CATALYST:{catalysts of the reaction}REAGENT:{reagents of the reaction}SOLVENT:{solvent of the reaction}". \nIf there are no catalyst or reagent, fill the blank with a space. And if there are multiple reactants, concatenate them with ".".\n(e.g. REACTANT:CNc1nc(SC)ncc1CO.O.O=[Cr](=O)([O-])O[Cr](=O)(=O)[O-].[Na+]CATALYST: REAGENT: SOLVENT:CC(=O)O)'
 
 
 
 
18
 
19
  class CFG():
20
  input_data = st.text_area(display_text)
 
14
  import rdkit
15
  import streamlit as st
16
 
17
+ st.title('predictproduct-t5')
18
+ st.text('At this space, you can predict the products of reactions from their inputs.')
19
+ st.text('The format of the string is like "REACTANT:{reactants of the reaction}CATALYST:{catalysts of the reaction}REAGENT:{reagents of the reaction}SOLVENT:{solvent of the reaction}".')
20
+ st.text('If there are no catalyst or reagent, fill the blank with a space. And if there are multiple reactants, concatenate them with "."')
21
+ display_text = 'input the reaction smiles (e.g. REACTANT:CNc1nc(SC)ncc1CO.O.O=[Cr](=O)([O-])O[Cr](=O)(=O)[O-].[Na+]CATALYST: REAGENT: SOLVENT:CC(=O)O)'
22
 
23
  class CFG():
24
  input_data = st.text_area(display_text)