Spaces:
Runtime error
Runtime error
abdulmatinomotoso
commited on
Commit
•
693cebb
1
Parent(s):
3da68b9
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def similar_headline(headline_1, headline_2):
|
|
18 |
result = f"not similar: {similarities_percent[0][0]}"
|
19 |
return result
|
20 |
|
21 |
-
demo = gr.Interface(similar_headline, inputs=[gr.
|
22 |
-
gr.
|
23 |
outputs = "text",
|
24 |
title="News Headline Similarities")
|
25 |
|
|
|
18 |
result = f"not similar: {similarities_percent[0][0]}"
|
19 |
return result
|
20 |
|
21 |
+
demo = gr.Interface(similar_headline, inputs=[gr.Textbox(label="Input the first headline here"),
|
22 |
+
gr.Textbox(label="Input the second headline here")],
|
23 |
outputs = "text",
|
24 |
title="News Headline Similarities")
|
25 |
|