MasteredUltraInstinct commited on
Commit
3990846
Β·
verified Β·
1 Parent(s): 323a8b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -5,11 +5,7 @@ from solver import (
5
  solve_linear_system
6
  )
7
  from llm_utils import explain_with_llm
8
- from image import image_tab # βœ… NEW
9
- from pix2text import Pix2Text # βœ… NEW
10
-
11
- # βœ… Initialize Pix2Text model
12
- p2t_model = Pix2Text.from_config() # βœ… NEW
13
 
14
  with gr.Blocks() as demo:
15
  gr.Markdown("# πŸ”’ Math Solver Suite")
@@ -79,6 +75,6 @@ with gr.Blocks() as demo:
79
  outputs=sys_steps
80
  )
81
 
82
- image_tab(p2t_model) # βœ… Adds Image Upload Solver tab
83
 
84
  demo.launch()
 
5
  solve_linear_system
6
  )
7
  from llm_utils import explain_with_llm
8
+ from image import image_tab # βœ… Now handles Pix2Text internally
 
 
 
 
9
 
10
  with gr.Blocks() as demo:
11
  gr.Markdown("# πŸ”’ Math Solver Suite")
 
75
  outputs=sys_steps
76
  )
77
 
78
+ image_tab() # βœ… Now no argument required
79
 
80
  demo.launch()