Dimitre commited on
Commit
dee456b
·
1 Parent(s): 3b1c034

Adding examples

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,5 +20,6 @@ def get_similarity(sentence_a, sentence_b):
20
  iface = gr.Interface(fn=get_similarity,
21
  inputs=[gr.Textbox(lines=2, placeholder="Sentence A here...", label="Sentence A"),
22
  gr.Textbox(lines=2, placeholder="Sentence B here...", label="Sentence B")],
23
- outputs="text")
 
24
  iface.launch()
 
20
  iface = gr.Interface(fn=get_similarity,
21
  inputs=[gr.Textbox(lines=2, placeholder="Sentence A here...", label="Sentence A"),
22
  gr.Textbox(lines=2, placeholder="Sentence B here...", label="Sentence B")],
23
+ outputs="text",
24
+ examples=[["Hello! This is a random sentence", "Hello! This is a slightly different random sentence"]])
25
  iface.launch()