Adr740 commited on
Commit
6d4a490
1 Parent(s): 11bbc08

Update get_cv.py

Browse files
Files changed (1) hide show
  1. get_cv.py +1 -1
get_cv.py CHANGED
@@ -15,7 +15,7 @@ def get_embedding(text, model="text-embedding-ada-002"):
15
  text = text.replace("\n", " ")
16
  except:
17
  None
18
- return openai.Embedding.create(input = [text], model=model).data[0].embedding
19
 
20
  def get_embedding2(text, model="text-embedding-ada-002"):
21
  try:
 
15
  text = text.replace("\n", " ")
16
  except:
17
  None
18
+ return openai.embeddings.create(input = [text], model=model).data[0].embedding
19
 
20
  def get_embedding2(text, model="text-embedding-ada-002"):
21
  try: