sagawa commited on
Commit
9a34be6
·
1 Parent(s): fd7d61f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -34,6 +34,12 @@ st.markdown('##### The code expects input_data as a string or CSV file that cont
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():
39
  uploaded_file = st.file_uploader("Choose a CSV file")
 
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
+ st.download_button(
38
+ label="Download demo_input.csv",
39
+ data=pd.read_csv('demo_input.csv').to_csv(index=False),
40
+ file_name='demo_input.csv',
41
+ mime='text/csv',
42
+ )
43
 
44
  class CFG():
45
  uploaded_file = st.file_uploader("Choose a CSV file")