logo
Dolly
repo-copy-icon

copied

Browse Source

Add sharable

Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
junjie.jiang 1 year ago
parent
commit
2d28da2f68
  1. 5
      hf_dolly.py

5
hf_dolly.py

@ -17,7 +17,7 @@ from typing import List
import torch
from transformers import pipeline
from towhee.operator.base import PyOperator
from towhee.operator.base import PyOperator, SharedType
class HuggingfaceDolly(PyOperator):
@ -60,3 +60,6 @@ class HuggingfaceDolly(PyOperator):
model_list.sort()
return model_list
@property
def shared_type(self):
return SharedType.Shareable

Loading…
Cancel
Save