abdulmatinomotoso commited on
Commit
8f12b5e
1 Parent(s): dd00e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,9 +13,9 @@ def similar_headline(headline_1, headline_2):
13
  similarities_percent = bert_similarities * 100
14
 
15
  if bert_similarities > 0.6:
16
- result = f"similar: {similarities_percent}"
17
  else:
18
- result = f"not similar: {similarities_percent}"
19
  return result
20
 
21
  demo = gr.Interface(similar_headline, inputs=[gr.inputs.Textbox(label="Input the first headline here"),
 
13
  similarities_percent = bert_similarities * 100
14
 
15
  if bert_similarities > 0.6:
16
+ result = f"similar: {similarities_percent[0][0]}"
17
  else:
18
+ result = f"not similar: {similarities_percent[0][0]}"
19
  return result
20
 
21
  demo = gr.Interface(similar_headline, inputs=[gr.inputs.Textbox(label="Input the first headline here"),