MasteredUltraInstinct commited on
Commit
a66cd7d
Β·
verified Β·
1 Parent(s): 689f341

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,6 +1,3 @@
1
-
2
- # Initialize Pix2Text model globally for use in the tab
3
- p2t_model = Pix2Text.from_config()
4
  import gradio as gr
5
  from solver import (
6
  generate_polynomial_template,
@@ -12,7 +9,7 @@ from image import image_tab # βœ… NEW
12
  from pix2text import Pix2Text # βœ… NEW
13
 
14
  # βœ… Initialize Pix2Text model
15
- p2t_model = Pix2Text.from_config() # βœ… NEW
16
 
17
  with gr.Blocks() as demo:
18
  gr.Markdown("# πŸ”’ Math Solver Suite")
 
 
 
 
1
  import gradio as gr
2
  from solver import (
3
  generate_polynomial_template,
 
9
  from pix2text import Pix2Text # βœ… NEW
10
 
11
  # βœ… Initialize Pix2Text model
12
+ p2t_model = Pix2Text.from_config() # βœ… FIXED position
13
 
14
  with gr.Blocks() as demo:
15
  gr.Markdown("# πŸ”’ Math Solver Suite")