Update modeling_t5.py
Browse files- modeling_t5.py +1 -1
modeling_t5.py
CHANGED
@@ -22,7 +22,7 @@ class T5ForConditionalGeneration(t5FCG):
|
|
22 |
|
23 |
|
24 |
def get_response(self,tokenizer,text, sample=True, top_p=0.9, temperature=0.7,max_length=1024,no_repeat_ngram_size=12,num_beams=1, length_penalty=0.6):
|
25 |
-
base_info = "用户:你是谁?\n小元:我是元语智能公司研发的AI智能助手, 在不违反原则的情况下,我可以回答你的任何问题。\n"
|
26 |
text=base_info+text
|
27 |
text = self.preprocess(text)
|
28 |
|
|
|
22 |
|
23 |
|
24 |
def get_response(self,tokenizer,text, sample=True, top_p=0.9, temperature=0.7,max_length=1024,no_repeat_ngram_size=12,num_beams=1, length_penalty=0.6):
|
25 |
+
#base_info = "用户:你是谁?\n小元:我是元语智能公司研发的AI智能助手, 在不违反原则的情况下,我可以回答你的任何问题。\n"
|
26 |
text=base_info+text
|
27 |
text = self.preprocess(text)
|
28 |
|