Hub documentation
Ví dụ Widget
Đăng nhập đơn (SSO) Nhật ký kiểm toán Khu vực lưu trữ Data Studio cho bộ dữ liệu riêng tư Nhóm tài nguyên (Kiểm soát truy cập) Tùy chọn tính toán nâng cao Bảo mật Nâng cao Quản lý Tokens Tài khoản dịch vụ Phân tích nhà xuất bản Bộ sưu tập nhóm Gating Bảo mật mạng Phân tích Tải xuống Giới hạn tần suất Bài viết trên blog
Gói PRO Kho lưu trữ Bắt đầu với kho lưu trữ Cài đặt kho Giới hạn lưu trữ Backend lưu trữ (Xet) Bộ nhớ đệm cục bộ Pull Requests & Discussions Thông báo Bộ sưu tập Webhooks GitHub Actions Notebooks Các bước tiếp theo Giấy phép
Mô hình Trung tâm Mô hình Thẻ mô hình Kết quả đánh giá Dữ liệu Bảng xếp hạng Mô hình có cổng Tải lên mô hình Tải xuống mô hình Thư viện tích hợp Model Widgets Suy luận mô hình Thống kê tải xuống các mô hình Danh sách kiểm tra phát hành mô hình Phần cứng Ứng dụng cục bộ Câu hỏi thường gặp Chủ đề nâng cao
Bộ dữ liệu Tổng quan về Datasets Thẻ Dữ liệu Bộ dữ liệu có kiểm soát Tải lên Datasets Tải lên Datasets (cho LLM) Tải Datasets Dataset dạng streaming Thư viện tích hợp Data Studio Dấu vết của Agent Thống kê tải Datasets
Spaces Tổng quan về Spaces Nâng cấp GPU cho Spaces Spaces ZeroGPU Chế độ Dev của Spaces Dung lượng & Lưu trữ ổ đĩa Spaces Tùy chỉnh tên miền cho Spaces Spaces dưới dạng máy chủ MCP Spaces dưới dạng Công cụ cho Agent Spaces dưới dạng API Endpoints Gradio Spaces Streamlit Spaces Static HTML Spaces Docker Spaces Nhúng Space của bạn Chạy Spaces với Docker Tham khảo cấu hình Spaces Nút Đăng nhập với HF Các Space nổi bật Nhật ký thay đổi Spaces Chủ đề nâng cao
Thùng chứa lưu trữ new Hình ảnh Container new Jobs Tổng quan về Jobs Bắt đầu nhanh Định giá và Thanh toán Quản lý công việc Cấu hình Sử dụng hình ảnh Docker Cung cấp mô hình Huấn luyện Mô hình Ví dụ & Hướng dẫn Xử lý các bộ dữ liệu lớn Lịch công việc Tự động hóa Webhook Tham khảo
Agents Tổng quan về Agents Hugging Face CLI cho AI Agents Hugging Face MCP Server Hugging Face Agent Skills Xây dựng agent với HF SDK Local Agents với llama.cpp Thư viện Agent Định dạng Traces Phiên
Khác Ví dụ Widget
Lưu ý rằng mỗi ví dụ widget cũng có thể tùy chọn mô tả đầu ra tương ứng của mô hình, trực tiếp trong thuộc tính output. Xem spec để biết thêm chi tiết.
Xử lý ngôn ngữ tự nhiên
Fill-Mask
widget:
- text: "Paris is the <mask> of France."
example_title: "Capital"
- text: "The goal of life is <mask>."
example_title: "Philosophy"Trả lời câu hỏi
widget:
- text: "What's my name?"
context: "My name is Clara and I live in Berkeley."
example_title: "Name"
- text: "Where do I live?"
context: "My name is Sarah and I live in London"
example_title: "Location"Tóm tắt
widget:
- text: "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."
example_title: "Eiffel Tower"
- text: "Laika, a dog that was the first living creature to be launched into Earth orbit, on board the Soviet artificial satellite Sputnik 2, on November 3, 1957. It was always understood that Laika would not survive the mission, but her actual fate was misrepresented for decades. Laika was a small (13 pounds [6 kg]), even-tempered, mixed-breed dog about two years of age. She was one of a number of stray dogs that were taken into the Soviet spaceflight program after being rescued from the streets. Only female dogs were used because they were considered to be anatomically better suited than males for close confinement."
example_title: "First in Space"Trả lời câu hỏi từ bảng
widget:
- text: "How many stars does the transformers repository have?"
table:
Repository:
- "Transformers"
- "Datasets"
- "Tokenizers"
Stars:
- 36542
- 4512
- 3934
Contributors:
- 651
- 77
- 34
Programming language:
- "Python"
- "Python"
- "Rust, Python and NodeJS"
example_title: "Github stars"Phân loại văn bản
widget:
- text: "I love football so much"
example_title: "Positive"
- text: "I don't really like this type of food"
example_title: "Negative"Sinh văn bản
widget:
- text: "My name is Julien and I like to"
example_title: "Julien"
- text: "My name is Merve and my favorite"
example_title: "Merve"Sinh văn bản từ văn bản
widget:
- text: "My name is Julien and I like to"
example_title: "Julien"
- text: "My name is Merve and my favorite"
example_title: "Merve"Phân loại Token
widget:
- text: "My name is Sylvain and I live in Paris"
example_title: "Parisian"
- text: "My name is Sarah and I live in London"
example_title: "Londoner"Bản dịch
widget:
- text: "My name is Sylvain and I live in Paris"
example_title: "Parisian"
- text: "My name is Sarah and I live in London"
example_title: "Londoner"Phân loại Zero-Shot
widget:
- text: "I have a problem with my car that needs to be resolved asap!!"
candidate_labels: "urgent, not urgent, phone, tablet, computer"
multi_class: true
example_title: "Car problem"
- text: "Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app."
candidate_labels: "mobile, website, billing, account access"
multi_class: false
example_title: "Phone issue"Độ tương tự của câu
widget:
- source_sentence: "That is a happy person"
sentences:
- "That is a happy dog"
- "That is a very happy person"
- "Today is a sunny day"
example_title: "Happy"Đối thoại
widget:
- text: "Hey my name is Julien! How are you?"
example_title: "Julien"
- text: "Hey my name is Clara! How are you?"
example_title: "Clara"Trích xuất đặc trưng
widget:
- text: "My name is Sylvain and I live in Paris"
example_title: "Parisian"
- text: "My name is Sarah and I live in London"
example_title: "Londoner"Âm thanh
Text-to-Speech
widget:
- text: "My name is Sylvain and I live in Paris"
example_title: "Parisian"
- text: "My name is Sarah and I live in London"
example_title: "Londoner"Nhận dạng giọng nói tự động
widget:
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample1.flac%3C%2Fspan%3E
example_title: Librispeech sample 1
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample2.flac%3C%2Fspan%3E
example_title: Librispeech sample 2Âm thanh sang Âm thanh
widget:
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample1.flac%3C%2Fspan%3E
example_title: Librispeech sample 1
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample2.flac%3C%2Fspan%3E
example_title: Librispeech sample 2Phân loại âm thanh
widget:
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample1.flac%3C%2Fspan%3E
example_title: Librispeech sample 1
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample2.flac%3C%2Fspan%3E
example_title: Librispeech sample 2Phát hiện hoạt động giọng nói
widget:
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample1.flac%3C%2Fspan%3E
example_title: Librispeech sample 1
- src: /static-proxy?url=https%3A%2F%2Fcdn-media.huggingface.co%2Fspeech_samples%2Fsample2.flac%3C%2Fspan%3E
example_title: Librispeech sample 2Thị giác máy tính
Phân loại hình ảnh
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
example_title: Tiger
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
example_title: TeapotPhát hiện đối tượng
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg
example_title: Football Match
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/airport.jpg
example_title: AirportPhân đoạn hình ảnh
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg
example_title: Football Match
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/airport.jpg
example_title: AirportẢnh sang Ảnh
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/canny-edge.jpg
prompt: Girl with Pearl Earring # `prompt` field is optional in case the underlying model supports text guidanceHình ảnh sang Video
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/canny-edge.jpg
prompt: Girl with Pearl Earring # `prompt` field is optional in case the underlying model supports text guidanceVăn bản sang Hình ảnh
widget:
- text: "A cat playing with a ball"
example_title: "Cat"
- text: "A dog jumping over a fence"
example_title: "Dog"Trả lời câu hỏi từ tài liệu
widget:
- text: "What is the invoice number?"
src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png"
- text: "What is the purchase amount?"
src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/contract.jpeg"Trả lời câu hỏi trực quan
widget:
- text: "What animal is it?"
src: "https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg"
- text: "Where is it?"
src: "https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg"Phân loại ảnh Zero-Shot
widget:
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png
candidate_labels: playing music, playing sports
example_title: Cat & DogKhác
Phân loại dữ liệu có cấu trúc
widget:
- structured_data:
fixed_acidity:
- 7.4
- 7.8
- 10.3
volatile_acidity:
- 0.7
- 0.88
- 0.32
citric_acid:
- 0
- 0
- 0.45
residual_sugar:
- 1.9
- 2.6
- 6.4
chlorides:
- 0.076
- 0.098
- 0.073
free_sulfur_dioxide:
- 11
- 25
- 5
total_sulfur_dioxide:
- 34
- 67
- 13
density:
- 0.9978
- 0.9968
- 0.9976
pH:
- 3.51
- 3.2
- 3.23
sulphates:
- 0.56
- 0.68
- 0.82
alcohol:
- 9.4
- 9.8
- 12.6
example_title: "Wine"