Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,10 @@ model = SentenceTransformer('sentence-transformers/multi-qa-mpnet-base-cos-v1')
|
|
6 |
|
7 |
def generate_embedding(query):
|
8 |
# return "Connected"
|
9 |
-
|
|
|
|
|
|
|
10 |
|
11 |
demo = gr.Interface(fn=generate_embedding, inputs="text", outputs="text")
|
12 |
|
|
|
6 |
|
7 |
def generate_embedding(query):
|
8 |
# return "Connected"
|
9 |
+
resposne = ""
|
10 |
+
for(char in model.encode(query)):
|
11 |
+
resposne += char + " "
|
12 |
+
return resposne
|
13 |
|
14 |
demo = gr.Interface(fn=generate_embedding, inputs="text", outputs="text")
|
15 |
|