Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,13 @@ from rdkit import Chem
|
|
14 |
import rdkit
|
15 |
import streamlit as st
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
class CFG():
|
18 |
-
input_data = st.text_area(
|
19 |
model_name_or_path = 'sagawa/ZINC-t5-productpredicition'
|
20 |
model = 't5'
|
21 |
num_beams = 5
|
|
|
14 |
import rdkit
|
15 |
import streamlit as st
|
16 |
|
17 |
+
display_text = 'At this space, you can predict the products of reactions from their inputs. /
|
18 |
+
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}". /
|
19 |
+
If there are no catalyst or reagent, fill the blank with a space. And if there are multiple reactants, concatenate them with "."./
|
20 |
+
(e.g. REACTANT:CNc1nc(SC)ncc1CO.O.O=[Cr](=O)([O-])O[Cr](=O)(=O)[O-].[Na+]CATALYST: REAGENT: SOLVENT:CC(=O)O)'
|
21 |
+
|
22 |
class CFG():
|
23 |
+
input_data = st.text_area(display_text)
|
24 |
model_name_or_path = 'sagawa/ZINC-t5-productpredicition'
|
25 |
model = 't5'
|
26 |
num_beams = 5
|