How kartven2/ai_calc works
This is a small desktop natural-language math calculator. A user enters a word problem in the Tkinter interface; its Calculate action sends the text to Ollama, extracts the tagged expression, evaluates it with SymPy, and displays the result or an error. The workflow is implemented in one file, so its distinct responsibilities share that path. The README is empty; the diagram reflects only the inspected source.
Main entry points: ai_calc.py Calculation Handler
Components 7
Other components
- User
- Tkinter Interface
ai_calc.py - Calculation Handler
ai_calc.py - Ollama Model
- Expression Extraction
ai_calc.py - SymPy Evaluation
- Result Display
ai_calc.py
Connections 6
- User → Tkinter Interface: enters problem
ai_calc.py - Tkinter Interface → Calculation Handler: invokes on click
ai_calc.py - Calculation Handler → Ollama Model: requests expression
ai_calc.py - Calculation Handler → Expression Extraction: extracts expression
ai_calc.py - Calculation Handler → SymPy Evaluation: evaluates expression
ai_calc.py - Calculation Handler → Result Display: updates result
ai_calc.py