README.md 732 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
```bash
# 先进入前端目录
cd projects/web
houlinfeng's avatar
houlinfeng committed
14
15
16
17

# 修改配置
# 将文件vite.config.ts中的target中的IP更改为自己电脑IP

houlinfeng's avatar
houlinfeng committed
18
19
20
21
# 打包前端项目
npm install -g yarn
yarn install
yarn build
houlinfeng's avatar
houlinfeng committed
22
23
```

houlinfeng's avatar
houlinfeng committed
24
2. 安装服务依赖
houlinfeng's avatar
houlinfeng committed
25
26

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

houlinfeng's avatar
houlinfeng committed
33
3. 启动服务
houlinfeng's avatar
houlinfeng committed
34
35

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

houlinfeng's avatar
houlinfeng committed
43
44
ps:接口文档

houlinfeng's avatar
houlinfeng committed
45
46
47
```
在浏览器打开 mineru-web接口文档.html
```