Skip to content

Commit 9a516f5

Browse files
authored
DOC Update landing page (#854)
* 📝 first draft of landing page * 🖍 apply adrin review * 🖍 apply omar review
1 parent 627fdb2 commit 9a516f5

File tree

2 files changed

+39
-77
lines changed

2 files changed

+39
-77
lines changed

docs/source/_toctree.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- sections:
22
- local: index
3-
title: 🤗 Hugging Face Hub Python Wrapper
3+
title: Home
44
- local: quick-start
55
title: Quick start
66
title: "Get started"

docs/source/index.mdx

Lines changed: 38 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,38 @@
1-
# `huggingface_hub`
2-
3-
## Welcome to the Hub repo! Here you can find all the open source things related to the Hugging Face Hub.
4-
5-
<p align="center">
6-
<img alt="Build" src="https://github.com/huggingface/huggingface_hub/workflows/Python%20tests/badge.svg">
7-
<a href="https://github.com/huggingface/huggingface_hub/blob/master/LICENSE">
8-
<img alt="GitHub" src="https://img.shields.io/github/license/huggingface/huggingface_hub.svg?color=blue">
9-
</a>
10-
<a href="https://github.com/huggingface/huggingface_hub/releases">
11-
<img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/huggingface_hub.svg">
12-
</a>
13-
</p>
14-
15-
What can you find in this repo?
16-
17-
* [`huggingface_hub`](https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub), a client library to download and publish on the Hugging Face Hub as well as extracting useful information from there.
18-
* [`api-inference-community`](https://github.com/huggingface/huggingface_hub/tree/main/api-inference-community), the Inference API for open source machine learning libraries.
19-
* [`js`](https://github.com/huggingface/huggingface_hub/tree/main/js), the open sourced widgets that allow people to try out the models in the browser.
20-
* [`interfaces`](https://github.com/huggingface/huggingface_hub/tree/main/js/src/lib/interfaces), Typescript definition files for the Hugging Face Hub.
21-
* [`docs`](https://github.com/huggingface/huggingface_hub/tree/main/docs), containing the official [Hugging Face Hub documentation](https://hf.co/docs).
22-
23-
## The `huggingface_hub` client library
24-
25-
This library allows anyone to work with the Hub repositories: you can clone them, create them and upload your models to them. On top of this, the library also offers methods to access information from the Hub. For example, listing all models that meet specific criteria or get all the files from a specific repo. You can find the library implementation [here](https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub).
26-
27-
<br>
28-
29-
## Integrating to the Hub.
30-
31-
We're partnering with cool open source ML libraries to provide free model hosting and versioning. You can find the existing integrations [here](https://huggingface.co/docs/hub/libraries).
32-
33-
The advantages are:
34-
35-
- Free model hosting for libraries and their users.
36-
- Built-in file versioning, even with very large files, thanks to a git-based approach.
37-
- Hosted inference API for all models publicly available.
38-
- In-browser widgets to play with the uploaded models.
39-
- Anyone can upload a new model for your library, they just need to add the corresponding tag for the model to be discoverable.
40-
- Fast downloads! We use Cloudfront (a CDN) to geo-replicate downloads so they're blazing fast from anywhere on the globe.
41-
- Usage stats and more features to come.
42-
43-
If you would like to integrate your library, feel free to open an issue to begin the discussion. We wrote a [step-by-step guide](https://huggingface.co/docs/hub/adding-a-library) with ❤️ showing how to do this integration.
44-
45-
<br>
46-
47-
## Inference API integration into the Hugging Face Hub
48-
49-
In order to get a functional Inference API on the Hub for your models (and thus, cool working widgets!) check out this [doc](https://github.com/huggingface/huggingface_hub/tree/main/api-inference-community). There is a docker image for each library. Within the image, you can find the implementation for supported pipelines for the given library.
50-
51-
<br>
52-
53-
54-
## Widgets
55-
56-
All our widgets are open-sourced. Feel free to propose and implement widgets. You can try all of them out [here](https://huggingface-widgets.netlify.app/).
57-
58-
59-
<br>
60-
61-
## Code Snippets
62-
63-
We'll implement a few tweaks to improve the UX for your models on the website – let's use [Asteroid](https://github.com/asteroid-team/asteroid) as an example.
64-
65-
Model authors add an `asteroid` tag to their model card and they get the advantages of model versioning built-in
66-
67-
![asteroid-model](docs/assets/asteroid_repo.png)
68-
69-
We add a custom "Use in Asteroid" button. When clicked, you get a library-specific code sample that you'll be able to specify. 🔥
70-
71-
![asteroid-code-sample](docs/assets/asteroid_snippet.png)
72-
73-
74-
<br>
75-
76-
## Feedback (feature requests, bugs, etc.) is super welcome 💙💚💛💜♥️🧡
1+
# Hub client library
2+
3+
The `huggingface_hub` library allows you to interact with the [Hugging Face
4+
Hub](https://hf.co), a machine learning platform for creators and collaborators.
5+
Discover pre-trained models and datasets for your projects or play with the hundreds of
6+
machine learning apps hosted on the Hub. You can also create and share your own models
7+
and datasets with the community. The `huggingface_hub` library provides a simple way to
8+
do all these things with Python.
9+
10+
Read the [quick start guide](quick-start) to get up and running with the
11+
`huggingface_hub` library. You will learn how to download files from the Hub, create a
12+
repository, and upload files to the Hub.
13+
14+
Keep reading to learn even more about how to:
15+
16+
- [Delete and clone a repository, and create and update a branch](how-to-manage).
17+
- [Download an entire repository and use regex matching to filter and download specific
18+
files](how-to-downstream).
19+
- [Upload your files with a context manager or use a helper to push files to a remote
20+
repository](how-to-upstream).
21+
- [Search thousands of models and datasets on the Hub with specific filters and
22+
parameters to only return the best results](searching-the-hub).
23+
- [Access the Inference API for accelerated inference](how-to-inference).
24+
25+
## Contribute
26+
27+
All contributions to the `huggingface_hub` are welcomed and equally valued! 🤗 Besides
28+
adding or fixing existing issues in the code, you can also help improve the
29+
documentation by making sure it is accurate and up-to-date, help answer questions on
30+
issues, and request new features you think will improve the library. Take a look at the
31+
[contribution
32+
guide](https://github.com/huggingface/huggingface_hub/blob/main/CONTRIBUTING.md) to
33+
learn more about how to submit a new issue or feature request, how to submit a pull
34+
request, and how to test your contributions to make sure everything works as expected.
35+
36+
Contributors should also be respectful of our [code of
37+
conduct](https://github.com/huggingface/huggingface_hub/blob/main/CODE_OF_CONDUCT.md) to
38+
create an inclusive and welcoming collaborative space for everyone.

0 commit comments

Comments
 (0)