Solvy is an AI-powered app designed to automatically solve worksheets.
⚠️ Note: Running the Machine Learning Model locally is currently broken.
- Linux (requirements require modifications to work with other systems)
- Python 3.11
-
Clone the repository
git clone https://github.com/simon0302010/Solvy.git cd Solvy
-
Install dependencies
If you are using an NVIDIA GPU:
pip install -r requirements.txt
If you are using a non-NVIDIA GPU or a CPU:
pip install -r requirements_cpu.txt
If you are not running the inference locally:
pip install -r requirements_cloud.txt
-
Add your API keys
GEMINI_API_KEY=<YOUR_GEMINI_API_KEY> ROBOFLOW_API_KEY=<YOUR_ROBOFLOW_API_KEY> GEMINI_API_KEY_LIST=[<GEMINI_API_KEY_1>, <GEMINI_API_KEY_2>] (optional)
-
Configure Solvy
Open
backend.py
and set the following variables at the top of the file:# Inference location: "roboflow" (cloud, recommended) or "local" (experimental) inference = "roboflow" # Save processed images and results (True/False) save_images = True # OCR method: "bounding_boxes" (fastest), "tesseract" (medium), "easyocr" (slowest, but most accurate), ocr = "bounding_boxes"
-
Run the program
python app.py