Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,12 @@ import rdkit
|
|
15 |
import streamlit as st
|
16 |
|
17 |
st.title('predictproduct-t5')
|
18 |
-
st.markdown('
|
19 |
-
st.markdown('
|
20 |
-
st.markdown('
|
|
|
|
|
|
|
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():
|
|
|
15 |
import streamlit as st
|
16 |
|
17 |
st.title('predictproduct-t5')
|
18 |
+
st.markdown('##### At this space, you can predict the products of reactions from their inputs.')
|
19 |
+
st.markdown('##### The code expects input_data as a string or CSV file that contains an "input" column. The format of the string or contents of the column are like "REACTANT:{reactants of the reaction}CATALYST:{catalysts of the reaction}REAGENT:{reagents of the reaction}SOLVENT:{solvent of the reaction}".')
|
20 |
+
st.markdown('##### If there are no catalyst or reagent, fill the blank with a space. And if there are multiple reactants, concatenate them with "."')
|
21 |
+
st.markdown('##### The output contains smiles of predicted products and sum of log-likelihood for each prediction. Predictions are ordered by their log-likelihood.(0th is the most probable product.) "valid compound" is the most probable and valid(can be recognized by RDKit) prediction.')
|
22 |
+
|
23 |
+
|
24 |
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)'
|
25 |
|
26 |
class CFG():
|