Surajrgl commited on
Commit
1d38c1c
·
1 Parent(s): 30857d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ model = SentenceTransformer('sentence-transformers/multi-qa-mpnet-base-cos-v1')
6
 
7
  def generate_embedding(query):
8
  # return "Connected"
9
- return model.encode(query)
10
 
11
  demo = gr.Interface(fn=generate_embedding, inputs="text", outputs="text")
12
 
 
6
 
7
  def generate_embedding(query):
8
  # return "Connected"
9
+ return str(model.encode(query))
10
 
11
  demo = gr.Interface(fn=generate_embedding, inputs="text", outputs="text")
12