Update image.py
Browse files
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
|
| 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
|
| 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 |
|