Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
bcef0868
Commit
bcef0868
authored
Sep 09, 2024
by
houlinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mineru_web
parent
8b275ea2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
README.md
projects/web_api/README.md
+7
-0
mineru-web接口文档.html
projects/web_api/mineru-web接口文档.html
+0
-0
analysis_view.py
projects/web_api/web_api/api/analysis/analysis_view.py
+2
-2
No files found.
projects/web_api/README.md
View file @
bcef0868
...
@@ -21,6 +21,13 @@ pip install poetry
...
@@ -21,6 +21,13 @@ pip install poetry
portey
install
portey
install
```
```
启动服务
```
bash
cd
web_api
python app.py
```
接口文档
接口文档
```
```
在浏览器打开 mineru-web接口文档.html
在浏览器打开 mineru-web接口文档.html
...
...
projects/web_api/mineru-web接口文档.html
View file @
bcef0868
This diff is collapsed.
Click to expand it.
projects/web_api/web_api/api/analysis/analysis_view.py
View file @
bcef0868
...
@@ -49,7 +49,7 @@ class AnalysisTaskProgressView(Resource):
...
@@ -49,7 +49,7 @@ class AnalysisTaskProgressView(Resource):
md_link_list
=
json
.
loads
(
analysis_pdf
.
md_link_list
)
md_link_list
=
json
.
loads
(
analysis_pdf
.
md_link_list
)
full_md_link
=
analysis_pdf
.
full_md_link
full_md_link
=
analysis_pdf
.
full_md_link
data
=
{
data
=
{
"state"
:
"failed"
,
"state"
:
task_state_map
.
get
(
analysis_task
.
status
)
,
"status"
:
analysis_pdf
.
status
,
"status"
:
analysis_pdf
.
status
,
"url"
:
file_url
,
"url"
:
file_url
,
"fileName"
:
file_name
,
"fileName"
:
file_name
,
...
@@ -61,7 +61,7 @@ class AnalysisTaskProgressView(Resource):
...
@@ -61,7 +61,7 @@ class AnalysisTaskProgressView(Resource):
return
generate_response
(
data
=
data
)
return
generate_response
(
data
=
data
)
else
:
# 任务异常结束
else
:
# 任务异常结束
data
=
{
data
=
{
"state"
:
task_state_map
.
get
(
analysis_task
.
status
)
,
"state"
:
"failed"
,
"status"
:
analysis_pdf
.
status
,
"status"
:
analysis_pdf
.
status
,
"url"
:
file_url
,
"url"
:
file_url
,
"fileName"
:
file_name
,
"fileName"
:
file_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment