README.md 1.28 KB
Newer Older
unknown's avatar
unknown committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# MinerU Local web_demo
## Feature Overview
<p align="center">
  <img src="images/web_demo_1.png" width="600px" style="vertical-align:middle;">
</p>

- Supports uploading PDFs and calling MinerU for processing

- Supports online editing of the Markdown results parsed by MinerU

- Supports viewing of historical tasks

## Installation and Deployment

0. MinerU Installation and Deployment
houlinfeng's avatar
houlinfeng committed
16
17


houlinfeng's avatar
houlinfeng committed
18
```
unknown's avatar
unknown committed
19
# The service depends on mineru, please ensure mineru is installed first
houlinfeng's avatar
houlinfeng committed
20
```
houlinfeng's avatar
houlinfeng committed
21

unknown's avatar
unknown committed
22
1. Package the front-end interface
houlinfeng's avatar
houlinfeng committed
23

houlinfeng's avatar
houlinfeng committed
24
```bash
unknown's avatar
unknown committed
25
# First, navigate to the front-end directory
houlinfeng's avatar
houlinfeng committed
26
cd projects/web
houlinfeng's avatar
houlinfeng committed
27

unknown's avatar
unknown committed
28
29
# Modify the configuration
# Change the IP in the target field of the file vite.config.ts to your own computer's IP
houlinfeng's avatar
houlinfeng committed
30

unknown's avatar
unknown committed
31
# Build the front-end project
houlinfeng's avatar
houlinfeng committed
32
33
34
npm install -g yarn
yarn install
yarn build
houlinfeng's avatar
houlinfeng committed
35
36
```

unknown's avatar
unknown committed
37
2. Install service dependencies
houlinfeng's avatar
houlinfeng committed
38
39

```bash
unknown's avatar
unknown committed
40
# First, navigate to the back-end directory
houlinfeng's avatar
houlinfeng committed
41
cd projects/web_demo
unknown's avatar
unknown committed
42
# Install dependencies
43
pip3 install -r requirements.txt  -i https://mirrors.aliyun.com/pypi/simple
houlinfeng's avatar
houlinfeng committed
44
45
```

unknown's avatar
unknown committed
46
3. Start the service
houlinfeng's avatar
houlinfeng committed
47
48

```bash
unknown's avatar
unknown committed
49
# Navigate to the program directory
houlinfeng's avatar
houlinfeng committed
50
cd projects/web_demo/web_demo
unknown's avatar
unknown committed
51
52
53
# Start the service
python3 app.py or python app.py
# Access the interface by visiting the started address in the browser
houlinfeng's avatar
houlinfeng committed
54
55
```

unknown's avatar
unknown committed
56
ps:API documentation
houlinfeng's avatar
houlinfeng committed
57

houlinfeng's avatar
houlinfeng committed
58
```
houlinfeng's avatar
houlinfeng committed
59
https://apifox.com/apidoc/shared-b8eda098-ab9c-4cb3-9432-62be9be9c6f7
houlinfeng's avatar
houlinfeng committed
60
```