rU-ShawJI-07 commited on
Commit
f22d972
·
verified ·
1 Parent(s): dc8942a

Update linear.py

Browse files
Files changed (1) hide show
  1. linear.py +4 -6
linear.py CHANGED
@@ -1,5 +1,3 @@
1
- #linear.py
2
-
3
  import gradio as gr
4
  import sympy as sp
5
  import numpy as np
@@ -69,7 +67,7 @@ def solve_linear_system_from_coeffs(eq1_str, eq2_str):
69
  ax.axhline(0, color='black', linewidth=0.5)
70
  ax.axvline(0, color='black', linewidth=0.5)
71
  ax.legend()
72
- ax.set_title("📊 Graph of the Equations")
73
  ax.grid(True)
74
 
75
  return eq_latex, steps, fig, ""
@@ -77,8 +75,8 @@ def solve_linear_system_from_coeffs(eq1_str, eq2_str):
77
  return f"❌ Error: {e}", None, None, None
78
 
79
  def linear_tab():
80
- with gr.Tab("📊 Linear System Solver"):
81
- gr.Markdown("## 📈 Solve 2x2 Linear System")
82
  linear_template = gr.Markdown(value=generate_linear_template())
83
 
84
  with gr.Row():
@@ -133,4 +131,4 @@ def linear_tab():
133
  fn=solve_linear_system_from_coeffs,
134
  inputs=[linear_eq1_input, linear_eq2_input],
135
  outputs=[linear_equation_display, linear_steps_md, linear_plot, linear_error]
136
- )
 
 
 
1
  import gradio as gr
2
  import sympy as sp
3
  import numpy as np
 
67
  ax.axhline(0, color='black', linewidth=0.5)
68
  ax.axvline(0, color='black', linewidth=0.5)
69
  ax.legend()
70
+ ax.set_title("Graph of the Linear System")
71
  ax.grid(True)
72
 
73
  return eq_latex, steps, fig, ""
 
75
  return f"❌ Error: {e}", None, None, None
76
 
77
  def linear_tab():
78
+ with gr.Tab("Linear System Solver"):
79
+ gr.Markdown("## Solve 2x2 Linear System")
80
  linear_template = gr.Markdown(value=generate_linear_template())
81
 
82
  with gr.Row():
 
131
  fn=solve_linear_system_from_coeffs,
132
  inputs=[linear_eq1_input, linear_eq2_input],
133
  outputs=[linear_equation_display, linear_steps_md, linear_plot, linear_error]
134
+ )