Spaces:
Sleeping
Sleeping
Vaishnav14220 commited on
Commit ·
968cde5
1
Parent(s): 36d6b6b
Fix examples to include all parameter values
Browse files
app.py
CHANGED
|
@@ -58,11 +58,11 @@ def predict_reaction(reactants_smiles, max_length=150, num_beams=5, temperature=
|
|
| 58 |
except Exception as e:
|
| 59 |
return f"Error: {str(e)}"
|
| 60 |
|
| 61 |
-
# Example inputs from ORD dataset
|
| 62 |
examples = [
|
| 63 |
-
["CC(C)N1CCN(C)CC1.Brc1ccccc1"], # Buchwald-Hartwig amination example
|
| 64 |
-
["CCN1CCNCC1.Ic1ccccc1"], # Another coupling reaction
|
| 65 |
-
["CC(=O)N1CCNCC1.Clc1ccccc1"], # Chloro coupling
|
| 66 |
]
|
| 67 |
|
| 68 |
# Create Gradio interface
|
|
|
|
| 58 |
except Exception as e:
|
| 59 |
return f"Error: {str(e)}"
|
| 60 |
|
| 61 |
+
# Example inputs from ORD dataset - [reactants, max_length, num_beams, temperature]
|
| 62 |
examples = [
|
| 63 |
+
["CC(C)N1CCN(C)CC1.Brc1ccccc1", 150, 5, 1.0], # Buchwald-Hartwig amination example
|
| 64 |
+
["CCN1CCNCC1.Ic1ccccc1", 150, 5, 1.0], # Another coupling reaction
|
| 65 |
+
["CC(=O)N1CCNCC1.Clc1ccccc1", 150, 5, 1.0], # Chloro coupling
|
| 66 |
]
|
| 67 |
|
| 68 |
# Create Gradio interface
|