Skip to content

Commit f662706

Browse files
authored
Merge pull request #17 from csunny/dev
update requirements
2 parents 23b9f6e + e3d7223 commit f662706

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ Run on an RTX 4090 GPU (The origin mov not sped up!, [YouTube地址](https://www
3232

3333
<img src="https://github.com/csunny/DB-GPT/blob/main/asserts/DB_QA.png" margin-left="auto" margin-right="auto" width="600">
3434

35+
# Dependencies
36+
1. First you need to install python requirements.
37+
```
38+
python>=3.9
39+
pip install -r requirements
40+
```
41+
or if you use conda envirenment, you can use this command
42+
```
43+
cd DB-GPT
44+
conda env create -f environment.yml
45+
```
46+
47+
2. MySQL Install
48+
49+
In this project examples, we connect mysql and run SQL-Generate. so you need install mysql local for test. recommand docker
50+
```
51+
docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa123456 -dit mysql:latest
52+
```
53+
The password just for test, you can change this if necessary
54+
3555
# Install
3656
1. 基础模型下载
3757
关于基础模型, 可以根据[vicuna](https://github.com/lm-sys/FastChat/blob/main/README.md#model-weights)合成教程进行合成。

environment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ dependencies:
6161
- gradio-client==0.0.8
6262
- wandb
6363
- fschat=0.1.10
64+
- llama-index=0.5.27
65+
- pymysql
66+
- unstructured==0.6.3
67+
- pytesseract==0.3.10

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ gradio-client==0.0.8
5252
wandb
5353
fschat=0.1.10
5454
llama-index=0.5.27
55-
pymysql
55+
pymysql
56+
unstructured==0.6.3
57+
pytesseract==0.3.10

0 commit comments

Comments
 (0)