Spaces:
Runtime error
Runtime error
Commit
·
eda942d
1
Parent(s):
284038e
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def gr_cosine_similarity(sentence1, sentence2):
|
|
92 |
# return dataframe for space output
|
93 |
return df, cosine_similarity
|
94 |
|
95 |
-
|
96 |
[
|
97 |
gr.inputs.Textbox(lines=1, placeholder="This movie always makes me cry..", default="", label="Text 1"),
|
98 |
gr.inputs.Textbox(lines=1, placeholder="Her dog is sad.", default="", label="Text 2"),
|
|
|
92 |
# return dataframe for space output
|
93 |
return df, cosine_similarity
|
94 |
|
95 |
+
gr.Interface(gr_cosine_similarity,
|
96 |
[
|
97 |
gr.inputs.Textbox(lines=1, placeholder="This movie always makes me cry..", default="", label="Text 1"),
|
98 |
gr.inputs.Textbox(lines=1, placeholder="Her dog is sad.", default="", label="Text 2"),
|