MasteredUltraInstinct commited on
Commit
042f3b9
Β·
verified Β·
1 Parent(s): 59534df

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import matplotlib
3
+ matplotlib.use('Agg') # Set Agg backend to avoid Qt issues
4
+ import matplotlib.pyplot as plt
5
+ from polynomial import polynomial_tab
6
+ from linear import linear_tab
7
+ from image import image_tab
8
+
9
+ with gr.Blocks(title="Polynomial and Linear System Solver") as demo:
10
+ # Create all tabs
11
+ poly_components = polynomial_tab()
12
+ linear_components = linear_tab()
13
+ image_components = image_tab()
14
+
15
+ if __name__ == "__main__":
16
+ demo.launch() # Removed server_port=7860 to allow automatic port selection