MasteredUltraInstinct commited on
Commit
ab8fb66
·
verified ·
1 Parent(s): 113b746

Update image.py

Browse files
Files changed (1) hide show
  1. image.py +2 -2
image.py CHANGED
@@ -382,7 +382,7 @@ def image_tab():
382
  return "⚠️ No valid equation to solve.", None, ""
383
  try:
384
  steps, plot, _ = solve_extracted_equation(eq_data, real_only)
385
- return steps, plot, steps # ✅ Send steps to hidden box for LLM
386
  except Exception as e:
387
  return f"❌ Error solving equation: {str(e)}", None, ""
388
 
@@ -420,7 +420,7 @@ def image_tab():
420
  _, steps, plot, _ = solve_linear_system_from_coeffs(eq_data["eq1_coeffs"], eq_data["eq2_coeffs"])
421
  else:
422
  return "❌ Unsupported equation type", None, ""
423
- return steps, plot, steps # ✅ Save steps for LLM
424
  except Exception as e:
425
  return f"❌ Error parsing manual input: {str(e)}", None, ""
426
 
 
382
  return "⚠️ No valid equation to solve.", None, ""
383
  try:
384
  steps, plot, _ = solve_extracted_equation(eq_data, real_only)
385
+ return steps, plot, gr.update(value=steps)
386
  except Exception as e:
387
  return f"❌ Error solving equation: {str(e)}", None, ""
388
 
 
420
  _, steps, plot, _ = solve_linear_system_from_coeffs(eq_data["eq1_coeffs"], eq_data["eq2_coeffs"])
421
  else:
422
  return "❌ Unsupported equation type", None, ""
423
+ return steps, plot, gr.update(value=steps)
424
  except Exception as e:
425
  return f"❌ Error parsing manual input: {str(e)}", None, ""
426