14 lines
415 B
Python
14 lines
415 B
Python
"""MinerU OCR 占位服务。"""
|
|
|
|
|
|
class MinerUService:
|
|
async def extract_markdown(self, file_url: str) -> str:
|
|
"""
|
|
阶段 0:直接返回固定内容,保证前端流程贯通。
|
|
阶段 1:调用 MinerU CLI / SDK,从 Supabase Storage 下载文件后解析。
|
|
"""
|
|
return f"# OCR Placeholder\n\n源文件:{file_url}"
|
|
|
|
|
|
mineru_service = MinerUService()
|