Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ parrot = Parrot(model_tag="prithivida/parrot_paraphraser_on_T5")
|
|
21 |
|
22 |
def generate_paraphases(phrase):
|
23 |
para_phrases = parrot.augment(
|
24 |
-
input_phrase=phrase, use_gpu=False, max_return_phrases=
|
25 |
)
|
26 |
return "\n".join(["- " + item[0] for item in para_phrases])
|
27 |
|
@@ -29,7 +29,9 @@ def generate_paraphases(phrase):
|
|
29 |
input_textbox = gr.Textbox(label="Type your sentence here", lines=5)
|
30 |
output_textbox = gr.Textbox(label="Paraphrases", lines=10)
|
31 |
|
32 |
-
demo = gr.Interface(
|
|
|
|
|
33 |
fn=generate_paraphases,
|
34 |
inputs=input_textbox,
|
35 |
outputs=output_textbox,
|
|
|
21 |
|
22 |
def generate_paraphases(phrase):
|
23 |
para_phrases = parrot.augment(
|
24 |
+
input_phrase=phrase, use_gpu=False, max_return_phrases=5
|
25 |
)
|
26 |
return "\n".join(["- " + item[0] for item in para_phrases])
|
27 |
|
|
|
29 |
input_textbox = gr.Textbox(label="Type your sentence here", lines=5)
|
30 |
output_textbox = gr.Textbox(label="Paraphrases", lines=10)
|
31 |
|
32 |
+
demo = gr.Interface(theme="huggingface",
|
33 |
+
description="description",
|
34 |
+
layout="vertical",
|
35 |
fn=generate_paraphases,
|
36 |
inputs=input_textbox,
|
37 |
outputs=output_textbox,
|