vijay399 commited on
Commit
38b6bd6
·
1 Parent(s): 02dbb6b

Update src/paraphrase/Paraphrase.py

Browse files
Files changed (1) hide show
  1. src/paraphrase/Paraphrase.py +3 -2
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('google/pegasus-xsum')
9
- model = PegasusForConditionalGeneration.from_pretrained('google/pegasus-xsum')
 
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 = ""