vpetrov commited on
Commit
0737961
1 Parent(s): 25759d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 Sharpened Confine Similarity between two sentences by sentence-t5-base.",
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=3),
37
  ],
38
  outputs=[
39
  gr.Label(label="Type"),
40
  gr.Label(label="Similarity Score"),
41
  ],
42
  examples=[
43
- ["Improve this text:", "Improve the text:", 3],
44
  ["QA - A | Invoices - Cost plus billables",
45
- "FE - Service Assets | Service Asset Table", 3],
46
  ["Service Assets | Service Asset Add/Edit/Delete Slideout",
47
- "FE - Service Assets | Service Asset Table", 3],
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
  )