更新版本号
This commit is contained in:
@@ -1 +1 @@
|
|||||||
__version__="1.1.0"
|
__version__="1.1.1"
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
from docling.pipeline.standard_pdf_pipeline import StandardPdfPipeline
|
# from docling.pipeline.standard_pdf_pipeline import StandardPdfPipeline
|
||||||
|
import docling.utils.model_downloader
|
||||||
def get_docling_artifacts():
|
def get_docling_artifacts():
|
||||||
path = StandardPdfPipeline.download_models_hf()
|
# path = StandardPdfPipeline.download_models_hf()
|
||||||
|
path=docling.utils.model_downloader.download_models()
|
||||||
|
print(f"docling模型包已经下载到{path.resolve()}")
|
||||||
return path
|
return path
|
||||||
|
#
|
||||||
|
if __name__ == '__main__':
|
||||||
|
get_docling_artifacts()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user