Dimitre commited on
Commit
97199d0
1 Parent(s): ed4a092

Adding title and description

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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",