Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,13 @@ st.markdown('##### The output contains smiles of predicted products and sum of l
|
|
| 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():
|
| 27 |
num_beams = st.number_input(label='num beams', min_value=1, max_value=10, value=5, step=1)
|
| 28 |
num_return_sequences = num_beams
|
|
|
|
| 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 |
+
st.download_button(
|
| 27 |
+
label="Download demo_input.csv",
|
| 28 |
+
data=pd.read_csv('demo_input.csv'),
|
| 29 |
+
file_name='demo_input.csv',
|
| 30 |
+
mime='text/csv',
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
class CFG():
|
| 34 |
num_beams = st.number_input(label='num beams', min_value=1, max_value=10, value=5, step=1)
|
| 35 |
num_return_sequences = num_beams
|