Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def text2text_paraphrase(sentence1,sentence2):
|
|
15 |
response=text2text_tkn.batch_decode(tokens)
|
16 |
return response
|
17 |
|
18 |
-
sent1=grad.Textbox(lines=1, label="
|
19 |
-
sent2=grad.Textbox(lines=1, label="
|
20 |
out=grad.Textbox(lines=1, label="Whether the sentence is acceptable or not")
|
21 |
grad.Interface(text2text_paraphrase, inputs=[sent1,sent2], outputs=out).launch()
|
|
|
15 |
response=text2text_tkn.batch_decode(tokens)
|
16 |
return response
|
17 |
|
18 |
+
sent1=grad.Textbox(lines=1, label="Sentence1", placeholder="Text in English")
|
19 |
+
sent2=grad.Textbox(lines=1, label="Sentence2", placeholder="Text in English")
|
20 |
out=grad.Textbox(lines=1, label="Whether the sentence is acceptable or not")
|
21 |
grad.Interface(text2text_paraphrase, inputs=[sent1,sent2], outputs=out).launch()
|