Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,11 +8,11 @@ warnings.filterwarnings("ignore")
|
|
8 |
parrot = Parrot(model_tag="prithivida/parrot_paraphraser_on_T5", use_gpu=False)
|
9 |
|
10 |
def paraphrase_text(input_text):
|
11 |
-
para_phrases = parrot.augment(input_phrase=
|
12 |
max_return_phrases = 3)
|
13 |
return para_phrases[0][0], para_phrases[1][0] if para_phrases[1][0] else '' , para_phrases[2][0] if para_phrases[2][0] else ''
|
14 |
|
15 |
-
examples = [["Begin your professional career by learning data science skills with Data
|
16 |
|
17 |
demo = gr.Interface(fn=paraphrase_text, inputs="text", outputs=["text", "text", "text"], title="Paraphrase", examples=examples)
|
18 |
demo.launch( debug = True )
|
|
|
8 |
parrot = Parrot(model_tag="prithivida/parrot_paraphraser_on_T5", use_gpu=False)
|
9 |
|
10 |
def paraphrase_text(input_text):
|
11 |
+
para_phrases = parrot.augment(input_phrase=input_text,
|
12 |
max_return_phrases = 3)
|
13 |
return para_phrases[0][0], para_phrases[1][0] if para_phrases[1][0] else '' , para_phrases[2][0] if para_phrases[2][0] else ''
|
14 |
|
15 |
+
examples = [["Begin your professional career by learning data science skills with Data Science Dojo, a globally recognized e-learning platform where we teach students how to learn data science, data analytics, machine learning, and more.", "45"], ["Hello, I am a paraphrasing tool. How can I help you?", "30"]]
|
16 |
|
17 |
demo = gr.Interface(fn=paraphrase_text, inputs="text", outputs=["text", "text", "text"], title="Paraphrase", examples=examples)
|
18 |
demo.launch( debug = True )
|