Spaces:
Runtime error
Runtime error
Adding examples
Browse files
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()
|