Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from maths.arithmetic.arithmetic_tab import arithmetic_tab | |
| from maths.number_theory.number_theory_tab import number_theory_tab | |
| from maths.algebra.algebra_tab import algebra_tab | |
| from maths.equations.equations_tab import equations_tab | |
| from maths.geometry.geometry_tab import geometry_tab | |
| from maths.calculus.calculus_tab import calculus_tab | |
| from maths.differential_equations.differential_equations_tab import differential_equations_tab | |
| from maths.matrices.matrices_tab import matrices_tab | |
| from maths.vectors.vectors_tab import vectors_tab | |
| from maths.operations_research.operations_research_tab import operations_research_tab | |
| # Main demo with topic tabs | |
| demo = gr.TabbedInterface( | |
| [ | |
| arithmetic_tab, number_theory_tab, algebra_tab, | |
| equations_tab, geometry_tab, calculus_tab, differential_equations_tab, | |
| matrices_tab, vectors_tab, operations_research_tab | |
| ], | |
| [ | |
| "Arithmetic", "Number Theory", "Algebra", | |
| "Equations", "Geometry", "Calculus", "Differential Equations", | |
| "Matrices", "Vectors", "Operations Research" | |
| ] | |
| ) | |
| # Launch the Gradio app | |
| if __name__ == "__main__": | |
| demo.launch(mcp_server=True) |