awinml commited on
Commit
2712bbe
1 Parent(s): 3475e71

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from InstructorEmbedding import INSTRUCTOR
3
 
4
  model = INSTRUCTOR('hkunlp/instructor-xl')
5
 
6
- def create_embedding(instruction, sentence):
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