Rabbitt-AI commited on
Commit
f2bc9a0
·
verified ·
1 Parent(s): 8a67fbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def get_text_embedding_with_rate_limit(text_list, initial_delay=2, max_retries=1
35
  logging.warning("Text chunk exceeds the token limit. Truncating the text.")
36
  text = text[:8192]
37
 
38
- response = openai.embeddings.create(
39
  model="text-embedding-3-small",
40
  input=[text]
41
  )
 
35
  logging.warning("Text chunk exceeds the token limit. Truncating the text.")
36
  text = text[:8192]
37
 
38
+ response = client.embeddings.create(
39
  model="text-embedding-3-small",
40
  input=[text]
41
  )