Feat: RAPTOR handle cancel gracefully (#11074)

### What problem does this PR solve?

RAPTOR handle cancel gracefully.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-11-06 17:18:03 +08:00
committed by GitHub
parent 3bd1fefe1f
commit 0cd8024c34
3 changed files with 41 additions and 12 deletions

View File

@ -4,7 +4,6 @@
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "huggingface-hub",
# "nltk",
# ]
# ///
@ -40,13 +39,6 @@ def get_urls(use_china_mirrors=False) -> list[Union[str, list[str]]]:
]
repos = [
"InfiniFlow/text_concat_xgb_v1.0",
"InfiniFlow/deepdoc",
"InfiniFlow/huqie",
]
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Download dependencies with optional China mirror support")
parser.add_argument("--china-mirrors", action="store_true", help="Use China-accessible mirrors for downloads")