Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ model = SentenceTransformer('sentence-transformers/multi-qa-mpnet-base-cos-v1')
|
|
5 |
|
6 |
|
7 |
def generate_embedding(query):
|
8 |
-
return "Connected"
|
9 |
-
|
10 |
|
11 |
demo = gr.Interface(fn=generate_embedding, inputs="text", outputs="text")
|
12 |
|
|
|
5 |
|
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 |
|