sagawa commited on
Commit
5dfc4f3
·
1 Parent(s): 86844fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,7 @@ st.title('predictyield-t5')
32
  st.markdown('### At this space, you can predict the yields of reactions from their inputs.')
33
  st.markdown('### The format of the string is like "REACTANT:{reactants of the reaction}REAGENT:{reagents, catalysts, or solvents of the reaction}PRODUCT:{products of the reaction}".')
34
  st.markdown('### If there are no reagents or catalysts, fill the blank with a space. And if there are multiple reactants, concatenate them with "."')
35
- display_text = 'input the reaction smiles (e.g. REACTANT:CC(C)n1ncnc1-c1cn2c(n1)-c1cnc(O)cc1OCC2.CCN(C(C)C)C(C)C.Cl.NC(=O)[C@@H]1C[C@H](F)CN1REAGENT: PRODUCT:O=C(NNC(=O)C(F)(F)F)C(F)(F)F'
36
 
37
 
38
  class CFG():
@@ -44,6 +44,7 @@ class CFG():
44
  batch_size = 5
45
  fc_dropout = 0.1
46
  seed = 42
 
47
 
48
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
49
 
 
32
  st.markdown('### At this space, you can predict the yields of reactions from their inputs.')
33
  st.markdown('### The format of the string is like "REACTANT:{reactants of the reaction}REAGENT:{reagents, catalysts, or solvents of the reaction}PRODUCT:{products of the reaction}".')
34
  st.markdown('### If there are no reagents or catalysts, fill the blank with a space. And if there are multiple reactants, concatenate them with "."')
35
+ display_text = 'input the reaction smiles (e.g. REACTANT:CC(C)n1ncnc1-c1cn2c(n1)-c1cnc(O)cc1OCC2.CCN(C(C)C)C(C)C.Cl.NC(=O)[C@@H]1C[C@H](F)CN1REAGENT: PRODUCT:O=C(NNC(=O)C(F)(F)F)C(F)(F)F)'
36
 
37
 
38
  class CFG():
 
44
  batch_size = 5
45
  fc_dropout = 0.1
46
  seed = 42
47
+ num_workers=1
48
 
49
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
50