j-hartmann commited on
Commit
121e4c3
·
1 Parent(s): eda942d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -93,11 +93,13 @@ def gr_cosine_similarity(sentence1, sentence2):
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"),
99
 
100
  #gr.outputs.Textbox(type="auto", label="Cosine similarity"),
101
  ],
102
- ["dataframe","text"]
103
- ).launch(debug=True)
 
 
 
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"),
99
 
100
  #gr.outputs.Textbox(type="auto", label="Cosine similarity"),
101
  ],
102
+ ["dataframe","text"]
103
+ ).launch(debug=True)
104
+
105
+