README.md 646 Bytes
Newer Older
houlinfeng's avatar
houlinfeng committed
1
## Mineru 本地API服务
houlinfeng's avatar
houlinfeng committed
2
3
4

MinerU

houlinfeng's avatar
houlinfeng committed
5
6
7
```
# 服务依赖mineru,请先确保mineru已安装
```
houlinfeng's avatar
houlinfeng committed
8

houlinfeng's avatar
houlinfeng committed
9
1. 打包前端界面
houlinfeng's avatar
houlinfeng committed
10

houlinfeng's avatar
houlinfeng committed
11
12
13
14
15
16
17
```bash
# 先进入前端目录
cd projects/web
# 打包前端项目
npm install -g yarn
yarn install
yarn build
houlinfeng's avatar
houlinfeng committed
18
19
```

houlinfeng's avatar
houlinfeng committed
20
2. 安装服务依赖
houlinfeng's avatar
houlinfeng committed
21
22

```bash
houlinfeng's avatar
houlinfeng committed
23
# 先进入后端目录
houlinfeng's avatar
houlinfeng committed
24
cd projects/web_api
houlinfeng's avatar
houlinfeng committed
25
26
# 安装依赖
pip3 install -r requirements.txt  -i https://pypi.tuna.tsinghua.edu.cn/simple
houlinfeng's avatar
houlinfeng committed
27
28
```

houlinfeng's avatar
houlinfeng committed
29
3. 启动服务
houlinfeng's avatar
houlinfeng committed
30
31

```bash
houlinfeng's avatar
houlinfeng committed
32
33
34
35
36
# 进入程序目录
cd projects/web_api/web_api
# 启动服务
python3 app.py
# 在浏览器访问启动的地址即可访问界面
houlinfeng's avatar
houlinfeng committed
37
38
```

houlinfeng's avatar
houlinfeng committed
39
40
ps:接口文档

houlinfeng's avatar
houlinfeng committed
41
42
43
```
在浏览器打开 mineru-web接口文档.html
```