rU-ShawJI-07 commited on
Commit
464a2c2
·
verified ·
1 Parent(s): bbd65cb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app.py
2
+ import gradio as gr
3
+ import matplotlib
4
+ matplotlib.use('Agg') # Set Agg backend to avoid Qt issues
5
+ import matplotlib.pyplot as plt
6
+ from polynomial import polynomial_tab
7
+ from linear import linear_tab
8
+ from image import image_tab
9
+
10
+ with gr.Blocks(title="Polynomial and Linear System Solver") as demo:
11
+ # Create all tabs
12
+ poly_components = polynomial_tab()
13
+ linear_components = linear_tab()
14
+ image_components = image_tab()
15
+
16
+ if __name__ == "__main__":
17
+ demo.launch(server_port=7860, share=True) # Added share=True as a fallback
18
+
19
+
20
+ #albumentations==2.0.8 (getting error at this version)