zemuwen commited on
Commit
cc8eed6
·
verified ·
1 Parent(s): 8984244

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  class EndpointHandler():
5
  def __init__(self, path="zemuwen/14B_lora_ze"):
6
  # 初始化方法,加载文本分类模型
7
- self.pipeline = pipeline("conversational ", model=path)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
10
  # 处理输入数据并返回预测结果
 
4
  class EndpointHandler():
5
  def __init__(self, path="zemuwen/14B_lora_ze"):
6
  # 初始化方法,加载文本分类模型
7
+ self.pipeline = pipeline("question-answering", model=path)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
10
  # 处理输入数据并返回预测结果