Update src/paraphrase/Paraphrase.py
Browse files
src/paraphrase/Paraphrase.py
CHANGED
@@ -5,8 +5,9 @@ import src.exception.Exception.Exception as ExceptionCustom
|
|
5 |
|
6 |
METHOD = "PARAPHRASE"
|
7 |
|
8 |
-
tokenizer = PegasusTokenizer.from_pretrained('
|
9 |
-
model = PegasusForConditionalGeneration.from_pretrained('
|
|
|
10 |
|
11 |
def paraphraseParaphraseMethod(requestValue : str):
|
12 |
exception = ""
|
|
|
5 |
|
6 |
METHOD = "PARAPHRASE"
|
7 |
|
8 |
+
tokenizer = PegasusTokenizer.from_pretrained('tuner007/pegasus_paraphrase')
|
9 |
+
model = PegasusForConditionalGeneration.from_pretrained('tuner007/pegasus_paraphrase')
|
10 |
+
|
11 |
|
12 |
def paraphraseParaphraseMethod(requestValue : str):
|
13 |
exception = ""
|