Spaces:
Runtime error
Runtime error
Adding title and description
Browse files
app.py
CHANGED
@@ -17,6 +17,8 @@ def get_similarity(sentence_a, sentence_b):
|
|
17 |
return f'The similarity score between sentence A and sentence B is: "{similarity:.2f}"'
|
18 |
|
19 |
iface = gr.Interface(fn=get_similarity,
|
|
|
|
|
20 |
inputs=[gr.Textbox(lines=2, placeholder="Sentence A here...", label="Sentence A"),
|
21 |
gr.Textbox(lines=2, placeholder="Sentence B here...", label="Sentence B")],
|
22 |
outputs="text",
|
|
|
17 |
return f'The similarity score between sentence A and sentence B is: "{similarity:.2f}"'
|
18 |
|
19 |
iface = gr.Interface(fn=get_similarity,
|
20 |
+
title="Sentence similarity",
|
21 |
+
description="Measure the similarity between sentences using universal-sentence-encoder",
|
22 |
inputs=[gr.Textbox(lines=2, placeholder="Sentence A here...", label="Sentence A"),
|
23 |
gr.Textbox(lines=2, placeholder="Sentence B here...", label="Sentence B")],
|
24 |
outputs="text",
|