Commit bcef0868 authored by houlinfeng's avatar houlinfeng

fix: mineru_web

parent 8b275ea2
......@@ -21,6 +21,13 @@ pip install poetry
portey install
```
启动服务
```bash
cd web_api
python app.py
```
接口文档
```
在浏览器打开 mineru-web接口文档.html
......
......@@ -49,7 +49,7 @@ class AnalysisTaskProgressView(Resource):
md_link_list = json.loads(analysis_pdf.md_link_list)
full_md_link = analysis_pdf.full_md_link
data = {
"state": "failed",
"state": task_state_map.get(analysis_task.status),
"status": analysis_pdf.status,
"url": file_url,
"fileName": file_name,
......@@ -61,7 +61,7 @@ class AnalysisTaskProgressView(Resource):
return generate_response(data=data)
else: # 任务异常结束
data = {
"state": task_state_map.get(analysis_task.status),
"state": "failed",
"status": analysis_pdf.status,
"url": file_url,
"fileName": file_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment