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 |
-
|
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 = ""
|
26 |
text=base_info+text
|
27 |
text = self.preprocess(text)
|
28 |
|