Nanny7 commited on
Commit
eaef0cd
·
1 Parent(s): d3c3431

Update ReactionToImage parameters for better SVG rendering

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=(300, 300), useSVG=True)
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