How many models!?
Hugging Face hosts a vast number of models designed to complete different tasks. In this exercise, you'll use the Hugging Face Hub's API to find the total number of models supported for different tasks.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Multi-Modal Models with Hugging Face
คำแนะนำการฝึกหัด
- Use the correct method of
apito the list all of the models associated with the"text-to-image"task.
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Find the list of models for a task
models = api.____(task="____")
print(f"Task: text-to-image, Models: {len(list(models))}")