Update all references to canonical models (#29001)
* Script & Manual edition * Update
This commit is contained in:
@@ -548,7 +548,7 @@ task = "text-classification"
|
||||
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
|
||||
print(model.id)
|
||||
```
|
||||
`text-classification`(텍스트 분류) 작업의 경우 `'facebook/bart-large-mnli'`를 반환하고, `translation`(번역) 작업의 경우 `'t5-base'`를 반환합니다.
|
||||
`text-classification`(텍스트 분류) 작업의 경우 `'facebook/bart-large-mnli'`를 반환하고, `translation`(번역) 작업의 경우 `'google-t5/t5-base'`를 반환합니다.
|
||||
|
||||
이를 에이전트가 활용할 수 있는 도구로 변환하려면 어떻게 해야 할까요?
|
||||
모든 도구는 필요한 주요 속성을 보유하는 슈퍼클래스 `Tool`에 의존합니다. 이를 상속하는 클래스를 만들어 보겠습니다:
|
||||
|
||||
Reference in New Issue
Block a user