Update app.py
Browse files
app.py
CHANGED
@@ -29,22 +29,22 @@ if __name__ == '__main__':
|
|
29 |
demo = gr.Interface(
|
30 |
fn=inference,
|
31 |
title="Sentence Similarity test",
|
32 |
-
description="Calculate
|
33 |
inputs=[
|
34 |
gr.Textbox(label="Base Sentence", placeholder="The sentence to compare against.", value="Improve this text:"),
|
35 |
gr.Textbox(label="Compare Sentence", placeholder="The sentence to compare.", value="Improve the text:"),
|
36 |
-
gr.Radio(label="Exponent", choices=[1, 2, 3], value=
|
37 |
],
|
38 |
outputs=[
|
39 |
gr.Label(label="Type"),
|
40 |
gr.Label(label="Similarity Score"),
|
41 |
],
|
42 |
examples=[
|
43 |
-
["Improve this text:", "Improve the text:",
|
44 |
["QA - A | Invoices - Cost plus billables",
|
45 |
-
"FE - Service Assets | Service Asset Table",
|
46 |
["Service Assets | Service Asset Add/Edit/Delete Slideout",
|
47 |
-
"FE - Service Assets | Service Asset Table",
|
48 |
],
|
49 |
cache_examples=True,
|
50 |
)
|
|
|
29 |
demo = gr.Interface(
|
30 |
fn=inference,
|
31 |
title="Sentence Similarity test",
|
32 |
+
description="Calculate Similarity between two Linear tickets",
|
33 |
inputs=[
|
34 |
gr.Textbox(label="Base Sentence", placeholder="The sentence to compare against.", value="Improve this text:"),
|
35 |
gr.Textbox(label="Compare Sentence", placeholder="The sentence to compare.", value="Improve the text:"),
|
36 |
+
gr.Radio(label="Exponent", choices=[1, 2, 3], value=1),
|
37 |
],
|
38 |
outputs=[
|
39 |
gr.Label(label="Type"),
|
40 |
gr.Label(label="Similarity Score"),
|
41 |
],
|
42 |
examples=[
|
43 |
+
["Improve this text:", "Improve the text:", 1],
|
44 |
["QA - A | Invoices - Cost plus billables",
|
45 |
+
"FE - Service Assets | Service Asset Table", 1],
|
46 |
["Service Assets | Service Asset Add/Edit/Delete Slideout",
|
47 |
+
"FE - Service Assets | Service Asset Table", 1],
|
48 |
],
|
49 |
cache_examples=True,
|
50 |
)
|