opendatalab / MinerU

A high-quality tool for convert PDF to Markdown and JSON.一站式开源高质量数据提取工具,将PDF转换成Markdown和JSON格式。
https://opendatalab.com/OpenSourceTools?tool=extract
GNU Affero General Public License v3.0
17.96k stars 1.29k forks source link

fastapi部署时,返回结果出错 #1005

Open asenasen123 opened 3 days ago

asenasen123 commented 3 days ago

Description of the bug | 错误描述

fastapi部署时,返回结果出错,显示如下: Failed to fetch. Possible Reasons:

CORS Network Failure URL scheme must be "http" or "https" for CORS request.

How to reproduce the bug | 如何复现

https://github.com/opendatalab/MinerU/blob/master/projects/web_api/README.md

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.9.x

Device mode | 设备模式

cuda