Spaces:
Runtime error
Runtime error
Update ReactionToImage parameters for better SVG rendering
Browse files
app.py
CHANGED
|
@@ -231,7 +231,7 @@ def reaction_smiles_to_svg(reaction_smiles: str) -> str:
|
|
| 231 |
reaction.AddProductTemplate(mol)
|
| 232 |
|
| 233 |
# Draw the reaction as SVG
|
| 234 |
-
svg = Draw.ReactionToImage(reaction, subImgSize=(
|
| 235 |
|
| 236 |
return svg
|
| 237 |
|
|
|
|
| 231 |
reaction.AddProductTemplate(mol)
|
| 232 |
|
| 233 |
# Draw the reaction as SVG
|
| 234 |
+
svg = Draw.ReactionToImage(reaction, subImgSize=(200, 200), useSVG=True, drawOptions=None, returnPNG=False)
|
| 235 |
|
| 236 |
return svg
|
| 237 |
|