Spaces:
Runtime error
Runtime error
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
| 1 |
-
# GeoGenSolver: Generative Illustration and Solver for Vietnamese Geometric Problem
|
| 2 |
-
# Requirements
|
| 3 |
-
Linux or Windows WSL with Python 3.10
|
| 4 |
-
# Setup
|
| 5 |
-
## Clone this Repo
|
| 6 |
-
```
|
| 7 |
-
git clone https://github.com/HugoVox/GeoGenSolver.git
|
| 8 |
-
cd GeoGenSolver
|
| 9 |
-
```
|
| 10 |
-
## Install necessary Linux packages
|
| 11 |
-
Depending on the exact Linux distribution/version, you may need to install these packages if they are not already installed.
|
| 12 |
-
```
|
| 13 |
-
sudo apt update
|
| 14 |
-
sudo apt install python3-virtualenv
|
| 15 |
-
sudo apt install python3-tk
|
| 16 |
-
```
|
| 17 |
-
## Install Python module dependencies
|
| 18 |
-
Create a virtual env `pyenv` for GeoGenSolver
|
| 19 |
-
```
|
| 20 |
-
virtualenv -p python3 pyenv
|
| 21 |
-
. pyenv/bin/activate
|
| 22 |
-
pip install --require-hashes --no-deps -r pre-requirements.txt
|
| 23 |
-
pip install --no-deps -r requirements.txt
|
| 24 |
-
```
|
| 25 |
-
**Note** It is important to install the requirements in the instructed order and templates.
|
| 26 |
-
## Run
|
| 27 |
-
For example we have the following geometric problem: `Cho tam giác cân ABC (AB = AC), các đường cao AD, BE, cắt nhau tại H. Gọi O là tâm đường tròn ngoại tiếp tam giác AHE. Chứng minh rằng: Bốn điểm A, E, D, B cùng nằm trên một đường tròn.`, here is how it runs
|
| 28 |
-
```
|
| 29 |
-
python main.py --question "Cho tam giác cân ABC (AB = AC), các đường cao AD, BE, cắt nhau tại H. Gọi O là tâm đường tròn ngoại tiếp tam giác AHE. Chứng minh rằng: Bốn điểm A, E, D, B cùng nằm trên một đường tròn."
|
| 30 |
-
```
|
| 31 |
-
We implement both Gemma2 and GPT 4o. Default is GPT 4o.
|
| 32 |
-
```
|
| 33 |
-
# If you want to use Gemma2
|
| 34 |
-
python main.py --model "gemma2-9b-it" --question <input question here>
|
| 35 |
-
```
|
| 36 |
-
# Issue Log
|
| 37 |
-
**Error:** Running main.py returns `Permission Denied`
|
| 38 |
-
|
| 39 |
-
**Solution:** Run the following command: `chmod +x ag4masses/utils/run.sh`. Then rerun the executing command above again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|