please add huggingface args in unstructured.partition.xx functions
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- huggingface, python
- Domain
- machine-learning
Research direction
Start with the partition_image example and trace the unstructured.partition.xx functions named in the request, then check how their model downloads currently receive configuration. Confirm the desired Hugging Face arguments and update the relevant function interfaces consistently; done means callers can control endpoint, cache, and timeout behavior without relying only on environment variables, with tests covering the new arguments.
Written by the indexing model from the issue text.
Description
I use os.environ to make unstructured know that i need use diffrent huggingface endpoint ,but it didn't work.
my code is these:
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
os.environ["HF_HOME"] = "/workspace/huggingface_cache_dir"
os.environ["HF_HUB_DOWNLOAD_TIMEOUT"] = "300"
os.environ["HF_HUB_OFFLINE"] = "0"
elements = partition_image(
filename="test_img.png",
languages=["eng","chi_sim"],
text_as_text=False,
include_metadata=True,
)
It still going to huggingface to download models
but my network can't view the official huggingface web site
is there someone tell me how to make it right?
thanks a lot
- Dominant language
- HTML
- Stars
- 15.8k
- Forks
- 1.4k
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 40
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unstructured-IO/unstructured
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4876 ·
Maintainers usually reply within 6 days
-
bug: partition_email() raises io.UnsupportedOperation on a file-like object that cannot seekPossibly taken @Bensonluo claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Unstructured-IO/unstructured#4864 ·
Maintainers usually reply within 6 days
-
fix(nlp): match single-letter bullets in the enumerated bullet patternPossibly taken @Eapp1e claimed this 33 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Unstructured-IO/unstructured#4635 ·
Maintainers usually reply within 6 days
-
bug(cleaners): translate_text passes text instead of chunk in attention window loopPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Unstructured-IO/unstructured#4558 · 1 comment ·
Maintainers usually reply within 6 days
-
extract_text_before/extract_text_after raise UnboundLocalError when the pattern is absentPossibly taken @ayam04 claimed this 103 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4427 · 3 comments ·
Maintainers usually reply within 6 days
All issues in Unstructured-IO/unstructured
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
easystats/performance#1038 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NVIDIA/physicsnemo#2354 ·
Maintainers usually reply within 2 days
-
ai-generated tests
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
data good first issue
Difficulty 1/5 Under an hour Newbie friendliness 92/100