Vaishnav14220 commited on
Commit
dfa9811
·
1 Parent(s): 40e0218

Fix indentation error in render_reaction_svg function - ensure proper indentation for if blocks

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -906,7 +906,7 @@ def render_reaction_svg(reaction_text: str, api_key: str = "", auto_complete: bo
906
 
907
  # Check if it's already SMILES format (contains >>)
908
  if ">>" in reaction_text:
909
- svg = _render_smiles_to_svg(reaction_text)
910
  if svg:
911
  status = "✅ Reaction rendered successfully from SMILES."
912
  return svg, status
@@ -923,7 +923,7 @@ def render_reaction_svg(reaction_text: str, api_key: str = "", auto_complete: bo
923
  svg = _render_reaction_from_nist(completed_reaction)
924
  if svg:
925
  status = f"✅ Reaction completed and rendered using DeepSeek AI.\nOriginal: {reaction_text}\nCompleted: {completed_reaction}"
926
- return svg, status
927
  else:
928
  return "", f"🚨 DeepSeek completed reaction but rendering failed: {completed_reaction}"
929
  else:
 
906
 
907
  # Check if it's already SMILES format (contains >>)
908
  if ">>" in reaction_text:
909
+ svg = _render_smiles_to_svg(reaction_text)
910
  if svg:
911
  status = "✅ Reaction rendered successfully from SMILES."
912
  return svg, status
 
923
  svg = _render_reaction_from_nist(completed_reaction)
924
  if svg:
925
  status = f"✅ Reaction completed and rendered using DeepSeek AI.\nOriginal: {reaction_text}\nCompleted: {completed_reaction}"
926
+ return svg, status
927
  else:
928
  return "", f"🚨 DeepSeek completed reaction but rendering failed: {completed_reaction}"
929
  else: