Replies: 1 comment
-
换成url地址吧。我给你修改后的代码,你试试 from fastapi import FastAPI, UploadFile, File, HTTPException from magic_pdf.config.enums import SupportedPdfParseMethod 初始化FastAPI应用app = FastAPI() def load_config():
def init_minio_client(config: dict) -> Tuple[Minio, str]:
def upload_to_minio(client: Minio, bucket_name: str, file_path: str, object_name: str, config: dict) -> str:
def generate_image_caption(image_path: str, config: dict) -> str:
async def process_pdf_file(pdf_path: str, output_dir: str, minio_client: Minio,
async def process_uploaded_file(file: UploadFile, minio_client: Minio,
服务初始化try: @app.post("/parse") if name == "main": |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
![image]()
提取的图片,希望内置在markdown文件内,而不是外部文件
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
比如,生成下面的图片。
比如加上参数 --image=base64 参数实现。
Beta Was this translation helpful? Give feedback.
All reactions