look / hgface.py
ZiyiUSST's picture
feat(对话系统): 添加基于BlenderBot的对话功能实现
55312fa
raw
history blame contribute delete
379 Bytes
from transformers.pipelines import SUPPORTED_TASKS
print(f"{'任务名称':<30} | {'模型类型':<15} | {'Pipeline实现类'}")
print("-" * 70)
for task_name, task_info in SUPPORTED_TASKS.items():
task_type = task_info['type']
impl_class = task_info['impl'].__name__
print(f"{task_name:<30} | {task_type:<15} | {impl_class}")
from transformers import Conversation