Update app.py
Browse files
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
|
| 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(
|
| 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()
|