Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,11 @@ def generate_text(inp):
|
|
22 |
sent = tokenizer.decode(diverse_beam_outputs[0], skip_special_tokens=True,clean_up_tokenization_spaces=True)
|
23 |
return sent
|
24 |
|
25 |
-
title = "
|
26 |
-
description = "Paraphrase means to express meaning using different words.
|
|
|
|
|
|
|
27 |
|
28 |
output_text = gr.outputs.Textbox()
|
29 |
gr.Interface(generate_text,"textbox", output_text, title=title, description=description).launch(inline=False)
|
|
|
22 |
sent = tokenizer.decode(diverse_beam_outputs[0], skip_special_tokens=True,clean_up_tokenization_spaces=True)
|
23 |
return sent
|
24 |
|
25 |
+
title = "Paraphrase with T5"
|
26 |
+
description = """Paraphrase means to express meaning using different words. T5 refers to a natural language processing model.
|
27 |
+
|
28 |
+
Write or paste text below, submit, and the machine will attempt to express your meaning using different words.
|
29 |
+
"""
|
30 |
|
31 |
output_text = gr.outputs.Textbox()
|
32 |
gr.Interface(generate_text,"textbox", output_text, title=title, description=description).launch(inline=False)
|