Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from InstructorEmbedding import INSTRUCTOR
|
|
3 |
|
4 |
model = INSTRUCTOR('hkunlp/instructor-xl')
|
5 |
|
6 |
-
def create_embedding(
|
7 |
embeddings = model.encode([[query_instruction, query]]).tolist()
|
8 |
print("Embeddings:", embeddings)
|
9 |
return embeddings
|
|
|
3 |
|
4 |
model = INSTRUCTOR('hkunlp/instructor-xl')
|
5 |
|
6 |
+
def create_embedding(query_instruction, query):
|
7 |
embeddings = model.encode([[query_instruction, query]]).tolist()
|
8 |
print("Embeddings:", embeddings)
|
9 |
return embeddings
|